Tests::testTagDescription PHP Method

testTagDescription() public method

public testTagDescription ( )
    public function testTagDescription()
    {
        $this->Meta->set('description', $text = self::text(150));
        $tag = $this->Meta->tag('description');
        $this->assertTrue(mb_substr_count($tag, '<meta name="description"') === 1);
        $this->assertTrue(mb_substr_count($tag, '<meta name="twitter:description"') === 1);
        $this->assertTrue(mb_substr_count($tag, '<meta property="og:description"') === 1);
        $this->assertTrue(mb_substr_count($tag, '<description>') === 0);
        $this->assertTrue(mb_strstr($tag, $text) ? true : false);
    }