‪TYPO3CMS  9.5
TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest Class Reference
Inheritance diagram for TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest:
TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait

Public Member Functions

 pagesSitemapInAlternativeLanguageDoesContainSiteThatIsHiddenIfNotTranslated ()
 
 pagesSitemapContainsTranslatedPages ()
 
 pagesSitemapDoesNotContainUntranslatedPages ()
 
 pagesSitemapDoesNotCareAboutFallbackStrategy ()
 

Protected Attributes

array $configurationToUseInTestInstance
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest
const LANGUAGE_PRESETS
 
string[] $coreExtensionsToLoad
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase
const ENCRYPTION_KEY = '4408d27a916d51e624b69af3554f516dbab61037a9f7b9fd6f81b4d3bedeccb6'
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest
 setUp ()
 
 getResponse (string $uri='http://localhost/')
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
 writeSiteConfiguration (string $identifier, array $site=[], array $languages=[], array $errorHandling=[])
 
 mergeSiteConfiguration (string $identifier, array $overrides)
 
array buildSiteConfiguration (int $rootPageId, string $base='')
 
array buildDefaultLanguageConfiguration (string $identifier, string $base)
 
array buildLanguageConfiguration (string $identifier, string $base, array $fallbackIdentifiers=[], string $fallbackType=null)
 
array buildErrorHandlingConfiguration (string $handler, array $codes)
 
mixed resolveLanguagePreset (string $identifier)
 
InternalRequest applyInstructions (InternalRequest $request, AbstractInstruction ... $instructions)
 
AbstractInstruction mergeInstruction (AbstractInstruction $current, AbstractInstruction $other)
 
- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
static failIfArrayIsNotEmpty (array $items)
 

Detailed Description

Contains functional tests for the XmlSitemap Index with $GLOBALS['TYPO3_CONF_VARS']['FE']['hidePagesIfNotTranslatedByDefault'] = true

Definition at line 23 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.

Member Function Documentation

◆ pagesSitemapContainsTranslatedPages()

TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest::pagesSitemapContainsTranslatedPages ( )

Behavior is not changed with "hidePagesIfNotTranslatedByDefault"

Test:

Definition at line 57 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.

References TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest\getResponse().

◆ pagesSitemapDoesNotCareAboutFallbackStrategy()

TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest::pagesSitemapDoesNotCareAboutFallbackStrategy ( )

Fallback strategy for pages is butchered by "hidePagesIfNotTranslatedByDefault" completely.

Test:

Definition at line 84 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.

References TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest\getResponse().

◆ pagesSitemapDoesNotContainUntranslatedPages()

TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest::pagesSitemapDoesNotContainUntranslatedPages ( )

Behavior is not changed with "hidePagesIfNotTranslatedByDefault"

Test:

Definition at line 70 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.

References TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest\getResponse().

◆ pagesSitemapInAlternativeLanguageDoesContainSiteThatIsHiddenIfNotTranslated()

TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest::pagesSitemapInAlternativeLanguageDoesContainSiteThatIsHiddenIfNotTranslated ( )

Page marked as "Hide page if no translation for current language exists". With "hidePagesIfNotTranslatedByDefault" enabled we expect to see the page because it does NOT exist in the requested language (DE).

Test:

Definition at line 44 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.

References TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest\getResponse().

Member Data Documentation

◆ $configurationToUseInTestInstance

array TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest::$configurationToUseInTestInstance
protected
Initial value:
= array(
'FE' => [
'hidePagesIfNotTranslatedByDefault' => true
]
)

This inverts the meaning of the "Hide page if no translation for current language exists" checkbox (l18n_cfg & 2).

Definition at line 31 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.