Skip to content

Commit

Permalink
Fix tests for site robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
javihgil committed Jun 5, 2024
1 parent 6d5a98a commit 26475a7
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions tests/Unit/Config/Model/SiteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public function testBasic()
$processor = new Processor();
$configuration = new Site('site_name');
$config = $processor->processConfiguration($configuration, ['site' => [
'allowed_content_types' => ['page', 'post'],
'locales' => ['es', 'en'],
'default_locale' => 'en',
'https_redirect' => false,
'hosts' => [
['domain' => 'example.org'],
],
'allowed_content_types' => ['page', 'post'],
'locales' => ['es', 'en'],
'default_locale' => 'en',
'https_redirect' => false,
'hosts' => [
['domain' => 'example.org'],
],
],
]);

$this->assertEquals([
Expand All @@ -57,6 +57,10 @@ public function testBasic()
'error_pages' => [],
'sitemaps' => [],
'sitemaps_index' => ['enabled' => false, 'url' => false, 'cache_ttl' => false],
'robots' => [
'mode' => false,
'static_file' => '@site/default/robots.txt.twig',
],
], $config);
}
}

0 comments on commit 26475a7

Please sign in to comment.