You are here

public function LanguageAccessBrowserTest::browserLanguageNegotiationDataProvider in Language access 8

Provides test cases for testBrowserLanguageNegotiation().

See also

testBrowserLanguageNegotiation

File

tests/src/Kernel/LanguageAccessBrowserTest.php, line 78

Class

LanguageAccessBrowserTest
Test language access browser test.

Namespace

Drupal\Tests\language_access\Kernel

Code

public function browserLanguageNegotiationDataProvider() {
  return [
    [
      'nl',
      [
        'access language nl',
      ],
      'nl-BE,fr-FR;q=0.5',
    ],
    [
      'fr',
      [
        'access language fr',
      ],
      'nl-BE,fr-FR;q=0.5',
    ],
    [
      'nl',
      [
        'access language fr',
        'access language nl',
      ],
      'nl-BE,fr-FR;q=0.5',
    ],
  ];
}