mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 17:12:41 +00:00
82e4838162
- Test files now consist entirely of traits: - General setup trait mocking User class and cleaning up - Driver trait to set up the database connection - Series trait containing tests for the series, independent of driver used
12 lines
No EOL
281 B
PHP
12 lines
No EOL
281 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace JKingWeb\Arsse\Test\Database;
|
|
use JKingWeb\Arsse\Data;
|
|
use JKingWeb\Arsse\Db\SQLite3\Driver;
|
|
|
|
trait DriverSQLite3 {
|
|
function setUpDriver() {
|
|
Data::$conf->dbSQLite3File = ":memory:";
|
|
$this->drv = new Driver(true);
|
|
}
|
|
} |