mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Fixed merge conflicts
This commit is contained in:
31
module/Core/test-api/Action/RobotsTest.php
Normal file
31
module/Core/test-api/Action/RobotsTest.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ShlinkioApiTest\Shlink\Core\Action;
|
||||
|
||||
use Shlinkio\Shlink\TestUtils\ApiTest\ApiTestCase;
|
||||
|
||||
class RobotsTest extends ApiTestCase
|
||||
{
|
||||
/** @test */
|
||||
public function expectedListOfCrawlableShortCodesIsReturned(): void
|
||||
{
|
||||
$resp = $this->callShortUrl('robots.txt');
|
||||
$body = $resp->getBody()->__toString();
|
||||
|
||||
self::assertEquals(200, $resp->getStatusCode());
|
||||
self::assertEquals(
|
||||
<<<ROBOTS
|
||||
# For more information about the robots.txt standard, see:
|
||||
# https://www.robotstxt.org/orig.html
|
||||
|
||||
User-agent: *
|
||||
Allow: /custom
|
||||
Allow: /abc123
|
||||
Disallow: /
|
||||
ROBOTS,
|
||||
$body,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user