Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / block_content / tests / src / Kernel / Migrate / MigrateBlockContentTypeTest.php
1 <?php
2
3 namespace Drupal\Tests\block_content\Kernel\Migrate;
4
5 use Drupal\block_content\BlockContentTypeInterface;
6 use Drupal\block_content\Entity\BlockContentType;
7 use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
8
9 /**
10  * Tests migration of the basic block content type.
11  *
12  * @group block_content
13  */
14 class MigrateBlockContentTypeTest extends MigrateDrupal7TestBase {
15
16   public static $modules = ['block', 'block_content', 'filter', 'text'];
17
18   /**
19    * {@inheritdoc}
20    */
21   protected function setUp() {
22     parent::setUp();
23     $this->installConfig(['block_content']);
24     $this->installEntitySchema('block_content');
25     $this->executeMigration('block_content_type');
26   }
27
28   /**
29    * Tests the block content type migration.
30    */
31   public function testBlockContentTypeMigration() {
32     /** @var \Drupal\block_content\BlockContentTypeInterface $entity */
33     $entity = BlockContentType::load('basic');
34     $this->assertTrue($entity instanceof BlockContentTypeInterface);
35     $this->assertIdentical('Basic', $entity->label());
36   }
37
38 }