setKeywords() public method

Sets the list of keywords, you can send an array or string separated with commas also clears the previously set keywords.
public setKeywords ( string | array $keywords ) : Artesaos\SEOTools\Contracts\MetaTags
$keywords string | array
return Artesaos\SEOTools\Contracts\MetaTags
Example #1
0
 public function test_set_keywords()
 {
     $fullHeader = "<title>It's Over 9000!</title>";
     $fullHeader .= "<meta name=\"description\" content=\"For those who helped create the Genki Dama\">";
     $fullHeader .= "<meta name=\"keywords\" content=\"masenko,makankosappo\">";
     $keywords = 'masenko,makankosappo';
     $this->seoMeta->setKeywords($keywords);
     $this->setRightAssertion($fullHeader);
     $this->assertEquals($keywords, implode($this->seoMeta->getKeywords(), ','));
 }