You are here

protected function CommentEntityFormDisplaySubjectTest::assertSubjectNotVisible in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/CommentEntityFormDisplaySubjectTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\CommentEntityFormDisplaySubjectTest::assertSubjectNotVisible()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/CommentEntityFormDisplaySubjectTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\CommentEntityFormDisplaySubjectTest::assertSubjectNotVisible()

Asserts that the comment subject field is not visible for a node type.

Parameters

string $id: The entity form display ID.

File

modules/ubercart/tests/src/Kernel/Migrate/uc7/CommentEntityFormDisplaySubjectTest.php, line 60

Class

CommentEntityFormDisplaySubjectTest
Tests the migration of comment form's subject display from Drupal 7.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7

Code

protected function assertSubjectNotVisible($id) {
  $component = EntityFormDisplay::load($id)
    ->getComponent('subject');
  $this
    ->assertNull($component);
}