public function MigrateSimpletestSettingsTest::testMigration in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/Tests/Migrate/d7/MigrateSimpletestSettingsTest.php \Drupal\simpletest\Tests\Migrate\d7\MigrateSimpletestSettingsTest::testMigration()
Tests migration of SimpleTest settings to configuration.
File
- core/
modules/ simpletest/ src/ Tests/ Migrate/ d7/ MigrateSimpletestSettingsTest.php, line 33 - Contains \Drupal\simpletest\Tests\Migrate\d7\MigrateSimpletestSettingsTest.
Class
- MigrateSimpletestSettingsTest
- Tests migration of SimpleTest's variables to configuration.
Namespace
Drupal\simpletest\Tests\Migrate\d7Code
public function testMigration() {
$config = \Drupal::config('simpletest.settings')
->get();
$this
->assertTrue($config['clear_results']);
$this
->assertIdentical(CURLAUTH_BASIC, $config['httpauth']['method']);
$this
->assertIdentical('testbot', $config['httpauth']['username']);
$this
->assertIdentical('foobaz', $config['httpauth']['password']);
$this
->assertTrue($config['verbose']);
}