@@ 44-56 (lines=13) @@ | ||
41 | ); |
|
42 | } |
|
43 | ||
44 | public function testDescription() |
|
45 | { |
|
46 | $this->generator->setDescription('My awesome site is so cool!'); |
|
47 | ||
48 | $this->assertEquals( |
|
49 | '<meta name="description" content="My awesome site is so cool!" />', |
|
50 | $this->generator->render() |
|
51 | ); |
|
52 | ||
53 | $this->assertInstanceOf( |
|
54 | MetaTag::class, $this->generator->getDescription() |
|
55 | ); |
|
56 | } |
|
57 | ||
58 | public function testKeywords() |
|
59 | { |
|
@@ 58-70 (lines=13) @@ | ||
55 | ); |
|
56 | } |
|
57 | ||
58 | public function testKeywords() |
|
59 | { |
|
60 | $this->generator->setKeywords('awesome, cool'); |
|
61 | ||
62 | $this->assertEquals( |
|
63 | '<meta name="keywords" content="awesome, cool" />', |
|
64 | $this->generator->render() |
|
65 | ); |
|
66 | ||
67 | $this->assertInstanceOf( |
|
68 | MetaTag::class, $this->generator->getKeywords() |
|
69 | ); |
|
70 | } |
|
71 | ||
72 | public function testCanonical() |
|
73 | { |