public function testInvalidDbName()
{
$databaseConfig = ['driver' => 'pdo_pgsql', 'dbname' => null];
$this->config->get('general/database')->willReturn($databaseConfig);
$this->extensionController->databaseDriver('parameter', null, 'pdo_pgsql', 'databasename')->shouldBeCalled();
$this->_validation->expects($this->once())->method('extension_loaded')->will($this->returnValue(true));
$this->validator->check('database');
}