/** * @test */ public function removeResourceFromObjectStorageHoldingResource() { $resource = new Tx_Nxshowroom_Domain_Model_Resource(); $localObjectStorage = new Tx_Extbase_Persistence_ObjectStorage(); $localObjectStorage->attach($resource); $localObjectStorage->detach($resource); $this->fixture->addResource($resource); $this->fixture->removeResource($resource); $this->assertEquals($localObjectStorage, $this->fixture->getResource()); }
/** * action list * * @param Tx_Nxshowroom_Domain_Model_Tags $tag * @return void */ public function listAction(Tx_Nxshowroom_Domain_Model_Tags $tag = NULL) { if ($tag) { $types = $this->typeRepository->findByTag($tag->getUid(), 5); $this->view->assign('tag', $tag); } else { $types = $this->typeRepository->findAll(); } $this->view->assign('UPLOAD_FOLDER', Tx_Nxshowroom_Utility_Base::$UPLOAD_FOLDER); $this->view->assign('types', $types); }