Example #1
0
 public function test_custom_metatags()
 {
     $this->assertEquals($this->seo->getMeta(), "");
     $this->seo->addMeta('author', 'Jake Mitchell');
     $this->assertEquals($this->seo->getMeta(), "<meta name=\"author\" content=\"Jake Mitchell\">");
     $this->seo->addMeta('viewport', 'width=device-width, initial-scale=1');
     $this->assertEquals($this->seo->getMeta(), "<meta name=\"author\" content=\"Jake Mitchell\">" . PHP_EOL . "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">");
     $this->seo->removeMeta('author');
     $this->assertEquals($this->seo->getMeta(), "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">");
     $this->seo->removeMeta('viewport');
     $this->seo->addMeta('refresh', '300', 'http-equiv');
     $this->assertEquals($this->seo->getMeta(), "<meta http-equiv=\"refresh\" content=\"300\">");
 }
Example #2
0
 public function setUp()
 {
     parent::setUp();
     $this->seo = $this->app->make('seo');
     $this->favicons = $this->seo->favicons();
 }