+ $this->db = $this->getMockBuilder( DatabaseSqlite::class )
+ ->setConstructorArgs( [ [
+ 'dbFilePath' => ':memory:',
+ 'schema' => false,
+ 'host' => false,
+ 'user' => false,
+ 'password' => false,
+ 'tablePrefix' => '',
+ 'cliMode' => true,
+ 'agent' => 'unit-tests',
+ 'flags' => DBO_DEFAULT,
+ 'variables' => [],
+ 'profiler' => null,
+ 'trxProfiler' => new TransactionProfiler(),
+ 'connLogger' => new NullLogger(),
+ 'queryLogger' => new NullLogger(),
+ 'errorLogger' => null,
+ 'deprecationLogger' => null,
+ ] ] )->setMethods( [ 'query' ] )
+ ->getMock();
+ $this->db->initConnection();
+ $this->db->method( 'query' )->willReturn( true );