public static function getApplication()
 {
     if (!isset(self::$application)) {
         self::$application = \Omeka\Test\DbTestCase::getApplication();
     }
     return self::$application;
 }
Example #2
0
<?php

require '../../bootstrap.php';
//make sure error reporting is on for testing
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Install a fresh database.
echo 'Dropping test database schema...' . PHP_EOL;
\Omeka\Test\DbTestCase::dropSchema();
echo 'Creating test database schema...' . PHP_EOL;
\Omeka\Test\DbTestCase::installSchema();