public function testSqliteFileExistsWritable()
{
$file = 'app/database/bolt.db';
$databaseConfig = ['driver' => 'pdo_sqlite', 'path' => $file];
$this->config->get('general/database')->willReturn($databaseConfig);
$this->extensionController->databasePath('file', $file, 'is not writable')->shouldNotBeCalled();
$this->_filesystem->expects($this->once())->method('file_exists')->with($file)->will($this->returnValue(true));
$this->_filesystem->expects($this->once())->method('touch')->will($this->returnValue(true))->with($file);
$this->_validation->expects($this->once())->method('extension_loaded')->will($this->returnValue(true));
$this->validator->check('database');
}