MigrateNodeSettingStickyTest.php in Zircon Profile 8
Same filename and directory in other branches
Namespace
Drupal\node\Tests\Migrate\d6File
core/modules/node/src/Tests/Migrate/d6/MigrateNodeSettingStickyTest.phpView source
<?php
/**
* @file
* Contains \Drupal\node\Tests\Migrate\d6\MigrateNodeSettingStickyTest.
*/
namespace Drupal\node\Tests\Migrate\d6;
use Drupal\Core\Field\Entity\BaseFieldOverride;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* @group migrate_drupal_6
*/
class MigrateNodeSettingStickyTest extends MigrateDrupal6TestBase {
public static $modules = [
'node',
'text',
];
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this
->installConfig([
'node',
]);
$this
->executeMigration('d6_node_type');
$this
->executeMigration('d6_node_setting_sticky');
}
/**
* Tests migration of the sticky checkbox's settings.
*/
public function testMigration() {
$this
->assertIdentical('Sticky at the top of lists', BaseFieldOverride::load('node.article.sticky')
->label());
}
}
Classes
Name | Description |
---|---|
MigrateNodeSettingStickyTest | @group migrate_drupal_6 |