‪TYPO3CMS  ‪main
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\AbstractXmlSitemapPagesTestCase 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\AbstractXmlSitemapPagesTestCase
const LANGUAGE_PRESETS
 
array $coreExtensionsToLoad = ['seo']
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase
const LANGUAGE_PRESETS
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTestCase
 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)
 
 buildSiteConfiguration (int $rootPageId, string $base='')
 
 buildDefaultLanguageConfiguration (string $identifier, string $base)
 
 buildLanguageConfiguration (string $identifier, string $base, array $fallbackIdentifiers=[], string $fallbackType=null)
 
 buildErrorHandlingConfiguration (string $handler, array $codes)
 
mixed resolveLanguagePreset (string $identifier)
 
 applyInstructions (InternalRequest $request, AbstractInstruction ... $instructions)
 
 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 24 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 60 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.

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

◆ pagesSitemapDoesNotCareAboutFallbackStrategy()

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

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

Test:

Definition at line 87 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.

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

◆ pagesSitemapDoesNotContainUntranslatedPages()

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

Behavior is not changed with "hidePagesIfNotTranslatedByDefault"

Test:

Definition at line 73 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.

References TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTestCase\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 47 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.

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

Member Data Documentation

◆ $configurationToUseInTestInstance

array TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest::$configurationToUseInTestInstance
protected
Initial value:
= [
'FE' => [
'hidePagesIfNotTranslatedByDefault' => true,
'cacheHash' => [
'enforceValidation' => false,
],
],
]

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.