You are here

public function MigrateSimpletestConfigsTest::testSimpletestSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/Tests/Migrate/d6/MigrateSimpletestConfigsTest.php \Drupal\simpletest\Tests\Migrate\d6\MigrateSimpletestConfigsTest::testSimpletestSettings()

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

File

core/modules/simpletest/src/Tests/Migrate/d6/MigrateSimpletestConfigsTest.php, line 39
Contains \Drupal\simpletest\Tests\Migrate\d6\MigrateSimpletestConfigsTest.

Class

MigrateSimpletestConfigsTest
Upgrade variables to simpletest.settings.yml.

Namespace

Drupal\simpletest\Tests\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());
}