‪TYPO3CMS  11.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

 $configurationToUseInTestInstance
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\AbstractXmlSitemapPagesTest
const LANGUAGE_PRESETS
 
 $coreExtensionsToLoad = array( 'seo' )
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\AbstractTestCase
const LANGUAGE_PRESETS
 
 $configurationToUseInTestInstance
 
 $coreExtensionsToLoad = array( 'workspaces' )
 

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\Frontend\Tests\Functional\SiteHandling\AbstractTestCase
array wrapInArray (array $array)
 
array keysFromValues (array $array)
 
array keysFromTemplate (array $array, string $template, callable $callback=null)
 
ArrayValueInstruction createTypoLinkUrlInstruction (array $typoScript)
 
ArrayValueInstruction createHierarchicalMenuProcessorInstruction (array $typoScript)
 
ArrayValueInstruction createLanguageMenuProcessorInstruction (array $typoScript)
 
array filterMenu (array $menu, array $keepNames=['title', 'link'])
 
- ‪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 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\AbstractXmlSitemapPagesTest\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\AbstractXmlSitemapPagesTest\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\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 47 of file XmlSitemapPagesWithHideIfNotTranslatedTest.php.

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

Member Data Documentation

◆ $configurationToUseInTestInstance

TYPO3\CMS\Seo\Tests\Functional\XmlSitemap\XmlSitemapPagesWithHideIfNotTranslatedTest::$configurationToUseInTestInstance
protected
Initial value:
= array(
'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.