| @@ 50-59 (lines=10) @@ | ||
| 47 | } |
|
| 48 | ||
| 49 | /** @test */ |
|
| 50 | public function it_links_tags_to_entity() |
|
| 51 | { |
|
| 52 | $page = $this->createPage(); |
|
| 53 | ||
| 54 | $page->setTags(['my first tag']); |
|
| 55 | ||
| 56 | $page = $this->page->findHomepage(); |
|
| 57 | ||
| 58 | $this->assertCount(1, $page->tags); |
|
| 59 | } |
|
| 60 | ||
| 61 | /** @test */ |
|
| 62 | public function it_removes_tags_from_link_with_entity() |
|
| @@ 62-71 (lines=10) @@ | ||
| 59 | } |
|
| 60 | ||
| 61 | /** @test */ |
|
| 62 | public function it_removes_tags_from_link_with_entity() |
|
| 63 | { |
|
| 64 | $this->createPage(['original tag']); |
|
| 65 | ||
| 66 | $page = $this->page->findHomepage(); |
|
| 67 | $page->setTags(['my first tag']); |
|
| 68 | ||
| 69 | $page = $this->page->findHomepage(); |
|
| 70 | $this->assertCount(1, $page->tags); |
|
| 71 | } |
|
| 72 | ||
| 73 | /** @test */ |
|
| 74 | public function it_can_get_pages_with_one_of_specified_tags() |
|