You are here

public function MigrateSimpletestConfigsTest::testSimpletestSettings in Drupal 8

Tests migration of simpletest variables to simpletest.settings.yml.

File

core/modules/simpletest/tests/src/Kernel/Migrate/d6/MigrateSimpletestConfigsTest.php, line 34

Class

MigrateSimpletestConfigsTest
Upgrade variables to simpletest.settings.yml.

Namespace

Drupal\Tests\simpletest\Kernel\Migrate\d6

Code

public function testSimpletestSettings() {
  $config = $this
    ->config('simpletest.settings');
  $this
    ->assertIdentical(TRUE, $config
    ->get('clear_results'));
  $this
    ->assertIdentical(CURLAUTH_BASIC, $config
    ->get('httpauth.method'));

  // NULL in the dump means defaults which is empty string. Same as omitting
  // them.
  $this
    ->assertIdentical('', $config
    ->get('httpauth.password'));
  $this
    ->assertIdentical('', $config
    ->get('httpauth.username'));
  $this
    ->assertIdentical(TRUE, $config
    ->get('verbose'));
  $this
    ->assertConfigSchema(\Drupal::service('config.typed'), 'simpletest.settings', $config
    ->get());
}