Gc\Mvc\Factory\CacheServiceFactoryTest::testCreateService PHP Method

testCreateService() public method

Test
public testCreateService ( ) : void
return void
    public function testCreateService()
    {
        $cache = Mockery::mock('Zend\\Cache\\Storage\\Adapter\\AbstractAdapter');
        $cache->shouldReceive('getPluginRegistry')->andReturn(array());
        $this->serviceLocator->shouldReceive('get')->once()->with('Cache')->andReturn($cache);
        $instance = $this->object->createService($this->serviceLocator);
        $this->assertInstanceOf('Gc\\Mvc\\Service\\CacheService', $instance);
    }