Source of file RobotsTxtControllerTest.php
Size: 0,600 Bytes - Last Modified: 2021-12-24T06:43:33+00:00
/var/www/docs.ssmods.com/process/src/tests/Controller/RobotsTxtControllerTest.php
123456789101112131415161718192021222324 | <?php namespace CyberDuck\SEO\Tests\Controller; use SilverStripe\Dev\FunctionalTest; class RobotsTxtControllerTest extends FunctionalTest { public function testRobotsRoute() { $page = $this->get('robots.txt'); $this->assertEquals(200, $page->getStatusCode()); $this->assertEquals('text/plain', $page->getHeader('Content-Type')); } public function testRobotsText() { $page = $this->get('robots.txt'); $this->assertContains('User-agent: ', $page->getBody()); $this->assertContains('Sitemap: ', $page->getBody()); } } |