Artesaos\SEOTools\SEOMeta::setTitleDefault PHP Method

setTitleDefault() public method

Sets the default title tag.
public setTitleDefault ( string $default ) : Artesaos\SEOTools\Contracts\MetaTags
$default string
return Artesaos\SEOTools\Contracts\MetaTags
    public function setTitleDefault($default)
    {
        $this->title_default = $default;
        return $this;
    }

Usage Example

Example #1
0
 public function test_set_default_title()
 {
     $fullTitle = 'Kamehamehaaaaaaaa';
     $fullHeader = '<title>' . $fullTitle . '</title>';
     $fullHeader .= "<meta name=\"description\" content=\"For those who helped create the Genki Dama\">";
     $this->seoMeta->setTitleDefault($fullTitle);
     $this->assertEquals($fullTitle, $this->seoMeta->getDefaultTitle());
     $this->setRightAssertion($fullHeader);
 }