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:
parent
22941f5ad1
commit
0129965bbd
2 changed files with 6 additions and 1 deletions
|
@ -27,7 +27,9 @@ trait SeriesMiscellany {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testInitializeDatabase() {
|
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() {
|
public function testManuallyInitializeDatabase() {
|
||||||
|
|
|
@ -64,6 +64,9 @@ class TestContext extends \JKingWeb\Arsse\Test\AbstractTest {
|
||||||
} else {
|
} else {
|
||||||
$this->assertSame($c->$method, $v[$method], "Context method $method did not return the expected results");
|
$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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue