public function testDefault() { $xRobotsTag = new XRobotsTag(); $this->assertFalse($xRobotsTag->isNoindex()); $this->assertFalse($xRobotsTag->isNofollow()); $xRobotsTag = new XRobotsTag(['default' => ['noindex' => false, 'nofollow' => false]]); $this->assertFalse($xRobotsTag->isNoindex()); $this->assertFalse($xRobotsTag->isNofollow()); $xRobotsTag = new XRobotsTag(['default' => ['noindex' => true, 'nofollow' => false]]); $this->assertTrue($xRobotsTag->isNoindexDefault()); $this->assertFalse($xRobotsTag->isNofollowDefault()); $xRobotsTag = new XRobotsTag(['default' => ['noindex' => false, 'nofollow' => true]]); $this->assertFalse($xRobotsTag->isNoindex()); $this->assertTrue($xRobotsTag->isNofollow()); $xRobotsTag = new XRobotsTag(['default' => ['noindex' => true, 'nofollow' => true]]); $this->assertTrue($xRobotsTag->isNoindex()); $this->assertTrue($xRobotsTag->isNofollow()); }