Go to the documentation of this file.
2 declare(strict_types = 1);
68 'home page in EN' => [
69 'url' =>
'https://acme.com/en/hello',
71 'page/title' =>
'EN: Welcome',
74 'about page in EN' => [
75 'url' =>
'https://acme.com/en/about-us',
77 'page/title' =>
'EN: About us',
80 'about page in DE where page translation exists' => [
81 'url' =>
'https://acme.com/de/ueber-uns',
83 'page/title' =>
'DE: Über uns',
86 'about page in DE-CH where page translation exists' => [
87 'url' =>
'https://acme.com/de-ch/ueber-uns',
89 'page/title' =>
'DE-CH: Über uns',
113 'home page in DE where page translation does not exist' => [
114 'url' =>
'https://acme.com/de/hello',
115 'exception' => PageNotFoundException::class,
117 'home page in DE-CH where page translation does not exist and is trapped by l18n_cfg' => [
118 'url' =>
'https://acme.com/de-ch/hello',
119 'exception' => PageNotFoundException::class,
121 'DE-CH shortcut to home page where page translation does not exist and is trapped by l18n_cfg' => [
122 'url' =>
'https://acme.com/de-ch/shortcut-to-welcome',
123 'exception' => PageNotFoundException::class,
147 'url' =>
'https://acme.com/en/hello',
149 [
'title' =>
'EN: Welcome',
'link' =>
'/en/hello'],
150 [
'title' =>
'EN: About us',
'link' =>
'/en/about-us'],
151 [
'title' =>
'EN: Products',
'link' =>
'/en/products'],
152 [
'title' =>
'EN: Shortcut to welcome',
'link' =>
'/en/hello'],
156 'url' =>
'https://acme.com/en/about-us',
158 [
'title' =>
'EN: Welcome',
'link' =>
'/en/hello'],
159 [
'title' =>
'EN: About us',
'link' =>
'/en/about-us'],
160 [
'title' =>
'EN: Products',
'link' =>
'/en/products'],
161 [
'title' =>
'EN: Shortcut to welcome',
'link' =>
'/en/hello'],
165 'url' =>
'https://acme.com/de/ueber-uns',
167 [
'title' =>
'DE: Über uns',
'link' =>
'/de/ueber-uns'],
171 'url' =>
'https://acme.com/de-ch/ueber-uns',
173 [
'title' =>
'DE-CH: Über uns',
'link' =>
'/de-ch/ueber-uns'],
174 [
'title' =>
'DE-CH: Produkte',
'link' =>
'/de-ch/produkte'],
175 [
'title' =>
'EN: Shortcut to welcome',
'link' =>
''],
array pageNotFoundDataProvider()
assertScopes(string $url, array $scopes)
assertException(string $url, string $exception)
array resolvablePagesDataProvider()
array buildLanguageConfiguration(string $identifier, string $base, array $fallbackIdentifiers=[], string $fallbackType=null)
writeSiteConfiguration(string $identifier, array $site=[], array $languages=[], array $errorHandling=[])
requestsThrowException(string $url, string $exception)
array buildDefaultLanguageConfiguration(string $identifier, string $base)
assertMenu(string $url, array $expectation)
array menuDataProvider()
setUpDatabaseWithYamlPayload(string $pathToYamlFile)
array buildSiteConfiguration(int $rootPageId, string $base='')
pageMenuIsRendered(string $url, array $expectedMenu)
resolvedPagesMatchScopes(string $url, array $scopes)