/** * Runs everything, that should be done after import * is finished. */ protected function runPostImportAction() { $this->albumContentManager->setAlbumAsGalleryThumbIfNotExisting(); $this->persistenceManager->persistAll(); }
/** * @test */ public function getAlbumReturnsAlbum() { $albumMock = $this->getMock('Tx_Yag_Domain_Model_Album', array(), array(), '', false); $albumContentManager = new Tx_Yag_Domain_AlbumContentManager($albumMock); $this->assertEquals($albumContentManager->getAlbum(), $albumMock); }