You are here

protected function MigrateCommentEntityFormDisplaySubjectTest::assertDisplay in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Tests/Migrate/d7/MigrateCommentEntityFormDisplaySubjectTest.php \Drupal\comment\Tests\Migrate\d7\MigrateCommentEntityFormDisplaySubjectTest::assertDisplay()

Asserts a display entity.

Parameters

string $id: The entity ID.

1 call to MigrateCommentEntityFormDisplaySubjectTest::assertDisplay()
MigrateCommentEntityFormDisplaySubjectTest::testMigration in core/modules/comment/src/Tests/Migrate/d7/MigrateCommentEntityFormDisplaySubjectTest.php
Tests the migrated display configuration.

File

core/modules/comment/src/Tests/Migrate/d7/MigrateCommentEntityFormDisplaySubjectTest.php, line 41
Contains \Drupal\comment\Tests\Migrate\d7\MigrateCommentEntityFormDisplaySubjectTest.

Class

MigrateCommentEntityFormDisplaySubjectTest
Tests migration of comment form's subject display configuration.

Namespace

Drupal\comment\Tests\Migrate\d7

Code

protected function assertDisplay($id) {
  $component = EntityFormDisplay::load($id)
    ->getComponent('subject');
  $this
    ->assertTrue(is_array($component));
  $this
    ->assertIdentical('string_textfield', $component['type']);
  $this
    ->assertIdentical(10, $component['weight']);
}