‪TYPO3CMS  11.5
XmlSitemapPagesWithHideIfNotTranslatedTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
25 {
32  'FE' => [
33  'hidePagesIfNotTranslatedByDefault' => true,
34  'cacheHash' => [
35  'enforceValidation' => false,
36  ],
37  ],
38  ];
39 
48  {
49  self::assertStringContainsString(
50  '<loc>http://localhost/de/dummy-1-2-5-fr</loc>',
51  (string)$this->‪getResponse('http://localhost/de/')->getBody()
52  );
53  }
54 
61  {
62  self::assertEquals(
63  4,
64  (new \SimpleXMLElement((string)$this->‪getResponse('http://localhost/fr/')->getBody()))->count()
65  );
66  }
67 
74  {
75  self::assertStringNotContainsString(
76  '<loc>http://localhost/dummy-1-4</loc>',
77  (string)$this->‪getResponse('http://localhost/fr/')->getBody()
78  );
79  }
80 
88  {
89  self::assertStringNotContainsString(
90  '<loc>http://localhost/de/dummy-1-3-fr</loc>',
91  (string)$this->‪getResponse('http://localhost/de/')->getBody()
92  );
93  }
94 }
‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest\getResponse
‪getResponse(string $uri='http://localhost/')
Definition: AbstractXmlSitemapPagesTest.php:60
‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest\pagesSitemapContainsTranslatedPages
‪pagesSitemapContainsTranslatedPages()
Definition: XmlSitemapPagesWithHideIfNotTranslatedTest.php:60
‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest
Definition: XmlSitemapPagesWithHideIfNotTranslatedTest.php:25
‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest\pagesSitemapDoesNotContainUntranslatedPages
‪pagesSitemapDoesNotContainUntranslatedPages()
Definition: XmlSitemapPagesWithHideIfNotTranslatedTest.php:73
‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest\$configurationToUseInTestInstance
‪$configurationToUseInTestInstance
Definition: XmlSitemapPagesWithHideIfNotTranslatedTest.php:31
‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap
Definition: AbstractXmlSitemapPagesTest.php:18
‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest\pagesSitemapDoesNotCareAboutFallbackStrategy
‪pagesSitemapDoesNotCareAboutFallbackStrategy()
Definition: XmlSitemapPagesWithHideIfNotTranslatedTest.php:87
‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest\pagesSitemapInAlternativeLanguageDoesContainSiteThatIsHiddenIfNotTranslated
‪pagesSitemapInAlternativeLanguageDoesContainSiteThatIsHiddenIfNotTranslated()
Definition: XmlSitemapPagesWithHideIfNotTranslatedTest.php:47
‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest
Definition: AbstractXmlSitemapPagesTest.php:25