Version 1
[yaffs-website] / web / core / modules / node / tests / src / Kernel / Migrate / d7 / MigrateNodeSettingsTest.php
1 <?php
2
3 namespace Drupal\Tests\node\Kernel\Migrate\d7;
4
5 use Drupal\Tests\SchemaCheckTestTrait;
6 use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
7
8 /**
9  * Upgrade variables to node.settings config object.
10  *
11  * @group node
12  */
13 class MigrateNodeSettingsTest extends MigrateDrupal7TestBase {
14
15   use SchemaCheckTestTrait;
16
17   /**
18    * Modules to enable.
19    *
20    * @var array
21    */
22   public static $modules = ['node'];
23
24   /**
25    * {@inheritdoc}
26    */
27   protected function setUp() {
28     parent::setUp();
29     $this->executeMigration('d7_node_settings');
30   }
31
32   /**
33    * Tests migration of node variables to node.settings config object.
34    */
35   public function testAggregatorSettings() {
36     $config = $this->config('node.settings');
37     $this->assertEqual(1, $config->get('use_admin_theme'));
38   }
39
40 }