1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-01-03 14:32:40 +00:00

Cover some missed code

This commit is contained in:
J. King 2018-12-05 12:54:19 -05:00
parent 22941f5ad1
commit 0129965bbd
2 changed files with 6 additions and 1 deletions

View file

@ -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() {

View file

@ -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());
}
}