/** * test config handler * * @return void */ public function testHandler() { $conn = m::mock('Xpressengine\\Database\\VirtualConnectionInterface'); $configManager = m::mock('Xpressengine\\Config\\ConfigManager'); $configManager->shouldReceive('get')->once()->andReturn(null); $handler = new ConfigHandler($conn, $configManager); $handler->getDefault(); $configManager->shouldReceive('get')->once()->andReturn(m::mock('Xpressengine\\Config\\ConfigEntity')); $handler->getDefault(); }