/** * @test */ public function setTitleForStringSetsTitle() { $this->subject->setTitle('Conceived at T3CON10'); $this->assertAttributeEquals('Conceived at T3CON10', 'title', $this->subject); }
/** * action show * * @param \Dawin\ChSbBlog\Domain\Model\Tag $tag * @return void */ public function showAction(\Dawin\ChSbBlog\Domain\Model\Tag $tag) { $postRepository = $this->objectManager->get('Dawin\\ChSbBlog\\Domain\\Repository\\PostRepository'); $tagPosts = $postRepository->findByTags($tag->getUid()); $this->view->assignMultiple(array('tag' => $tag, 'posts' => $tagPosts)); }