protected function setUp() { parent::setUp(); $this->galleryManager = $this->getMock('Sonata\\MediaBundle\\Model\\GalleryManagerInterface'); $this->pool = $this->getMockBuilder('Sonata\\MediaBundle\\Provider\\Pool')->disableOriginalConstructor()->getMock(); $this->templating = new FakeTemplating(); }
protected function setUp() { parent::setUp(); $this->templating = new FakeTemplating(); $this->contextManager = $this->getMock('Sonata\\ClassificationBundle\\Model\\ContextManagerInterface'); $this->categoryManager = $this->getMock('Sonata\\ClassificationBundle\\Model\\CategoryManagerInterface'); $this->categoryAdmin = $this->getMockBuilder('Sonata\\ClassificationBundle\\Admin\\CategoryAdmin')->disableOriginalConstructor()->getMock(); }
protected function setUp() { parent::setUp(); $this->pool = $this->getMockBuilder('Sonata\\AdminBundle\\Admin\\Pool')->disableOriginalConstructor()->getMock(); }
protected function setUp() { parent::setUp(); $this->pageManager = $this->getMock('Sonata\\PageBundle\\Model\\PageManagerInterface'); $this->templating = new FakeTemplating(); }
/** * Cleans up the environment after running a test. */ protected function tearDown() { $this->name = null; $this->templating = null; $this->pool = null; $this->em = null; $this->securityContext = null; $this->token = null; $this->user = null; $this->logRepository = null; $this->logsBlockService = null; $this->registry = null; $this->registryRepository = null; parent::tearDown(); }