Browse Source

Cover some missed code

microsub
J. King 5 years ago
parent
commit
0129965bbd
  1. 4
      tests/cases/Database/SeriesMiscellany.php
  2. 3
      tests/cases/Misc/TestContext.php

4
tests/cases/Database/SeriesMiscellany.php

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

3
tests/cases/Misc/TestContext.php

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

Loading…
Cancel
Save