MigrateSystemSiteTest.php in Zircon Profile 8
File
core/modules/system/src/Tests/Migrate/d6/MigrateSystemSiteTest.php
View source
<?php
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
class MigrateSystemSiteTest extends MigrateDrupal6TestBase {
protected function setUp() {
parent::setUp();
$this
->executeMigration('d6_system_site');
}
public function testSystemSite() {
$config = $this
->config('system.site');
$this
->assertIdentical('site_name', $config
->get('name'));
$this
->assertIdentical('site_mail@example.com', $config
->get('mail'));
$this
->assertIdentical('Migrate rocks', $config
->get('slogan'));
$this
->assertIdentical('/user', $config
->get('page.403'));
$this
->assertIdentical('/page-not-found', $config
->get('page.404'));
$this
->assertIdentical('/node', $config
->get('page.front'));
$this
->assertIdentical(FALSE, $config
->get('admin_compact_mode'));
}
}