You are here

public function MigrateLanguageNegotiationSettingsTest::testLanguageNegotiation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/Tests/Migrate/d7/MigrateLanguageNegotiationSettingsTest.php \Drupal\language\Tests\Migrate\d7\MigrateLanguageNegotiationSettingsTest::testLanguageNegotiation()

Tests migration of language negotiation variables to language.negotiation.yml.

File

core/modules/language/src/Tests/Migrate/d7/MigrateLanguageNegotiationSettingsTest.php, line 37
Contains \Drupal\language\Tests\Migrate\d7\MigrateLanguageNegotiationSettingsTest.

Class

MigrateLanguageNegotiationSettingsTest
Tests migration of language negotiation variables.

Namespace

Drupal\language\Tests\Migrate\d7

Code

public function testLanguageNegotiation() {
  $config = $this
    ->config('language.negotiation');
  $this
    ->assertIdentical($config
    ->get('session.parameter'), 'language');
  $this
    ->assertIdentical($config
    ->get('url.source'), 'domain');
}