Files
MeDBia/videodb/test/test_google.php
Malin f55c91276e feat: add videodb media index with Docker stack
- Add videodb PHP/MySQL media collection manager (Blu-ray, DVD, CD)
- Dockerfile: PHP 8.1 + Apache with GD/mysqli/exif extensions
- docker-compose.yml: app on port 6761 + MySQL 8.0 with health checks
- docker-entrypoint.sh: auto-generates config.inc.php from env vars,
  waits for MySQL, initializes DB schema idempotently
- init-db.php: CLI schema installer using app's own prefix_query() logic
- Persistent volumes for DB, cache, and cover images

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 09:49:52 +02:00

48 lines
976 B
PHP

<?php
/**
* test_google.php
*
* google.com images engine test case
*
* @package Test
* @author Andreas Götz <cpuidle@gmx.de>
* @version $Id: test_google.php,v 1.5 2013/02/02 11:38:59 andig2 Exp $
*/
require_once './core/functions.php';
require_once './engines/engines.php';
class TestGoogle extends UnitTestCase
{
function TestGoogle()
{
parent::__construct();
}
function testSearch()
{
// http://images.google.com/images?q=terminator
$id = 'Terminator';
$data = engineSearch($id, 'google');
#$this->assertNoErrors();
$this->assertTrue(sizeof($data) >= 16);
# dump($data);
}
function testSearch2()
{
// http://images.google.com/images?q=Out+of+Time
$id = 'Out of Time';
$data = engineSearch($id, 'google');
#$this->assertNoErrors();
$this->assertTrue(sizeof($data) >= 16);
# dump($data);
}
}
?>