@ -27,7 +27,9 @@ trait SeriesMiscellany {
}
public function testInitializeDatabase() {
$this->assertSame(Database::SCHEMA_VERSION, Arsse::$db->driverSchemaVersion());
(static::$dbInfo->razeFunction)(static::$drv);
$d = new Database(true);
$this->assertSame(Database::SCHEMA_VERSION, $d->driverSchemaVersion());
public function testManuallyInitializeDatabase() {
@ -64,6 +64,9 @@ class TestContext extends \JKingWeb\Arsse\Test\AbstractTest {
} else {
$this->assertSame($c->$method, $v[$method], "Context method $method did not return the expected results");
// clear the context option
$c->$method(null);
$this->assertFalse($c->$method());