Gc\Mvc\Factory\CacheFactoryTest::setUp PHP Method

setUp() protected method

This method is called before a test is executed.
protected setUp ( ) : void
return void
    protected function setUp()
    {
        $this->config = Mockery::mock('Gc\\Core\\Config');
        $this->config->shouldReceive('getValue')->once()->with('cache_lifetime')->andReturn(100);
        $this->serviceLocator = Mockery::mock('Zend\\ServiceManager\\ServiceLocatorInterface');
        $this->serviceLocator->shouldReceive('get')->with('CoreConfig')->andReturn($this->config);
        $this->object = new CacheFactory();
    }