MigrateSimpletestConfigsTest.php in Zircon Profile 8
File
core/modules/simpletest/src/Tests/Migrate/d6/MigrateSimpletestConfigsTest.php
View source
<?php
namespace Drupal\simpletest\Tests\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
class MigrateSimpletestConfigsTest extends MigrateDrupal6TestBase {
use SchemaCheckTestTrait;
public static $modules = array(
'simpletest',
);
protected function setUp() {
parent::setUp();
$this
->installConfig([
'simpletest',
]);
$this
->executeMigration('d6_simpletest_settings');
}
public function testSimpletestSettings() {
$config = $this
->config('simpletest.settings');
$this
->assertIdentical(TRUE, $config
->get('clear_results'));
$this
->assertIdentical(CURLAUTH_BASIC, $config
->get('httpauth.method'));
$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());
}
}