protected function setUp() { parent::setUp(); $this->validator = $this->getMockBuilder('RedKiteLabs\\RedKiteCms\\RedKiteCmsBundle\\Core\\Content\\Validator\\ParametersValidatorPageManager')->disableOriginalConstructor()->getMock(); $this->blockRepository = $this->getMockBuilder('RedKiteLabs\\RedKiteCms\\RedKiteCmsBundle\\Core\\Repository\\Propel\\BlockRepositoryPropel')->disableOriginalConstructor()->getMock(); $this->factoryRepository = $this->getMock('RedKiteLabs\\RedKiteCms\\RedKiteCmsBundle\\Core\\Repository\\Factory\\FactoryRepositoryInterface'); $this->factoryRepository->expects($this->any())->method('createRepository')->will($this->returnValue($this->blockRepository)); $this->blockManager = new BlockManagerJsonBlockTester($this->eventsHandler, $this->factoryRepository, $this->validator); }
protected function setUp() { parent::setUp(); $this->blocksRepository = $this->getMock('RedKiteLabs\\RedKiteCms\\RedKiteCmsBundle\\Core\\Repository\\Propel\\BlockRepositoryPropel'); }