CommentNonNodeTest::$entity

Same name in other branches
  1. 9 core/modules/comment/tests/src/Functional/CommentNonNodeTest.php \Drupal\Tests\comment\Functional\CommentNonNodeTest::entity
  2. 8.9.x core/modules/comment/tests/src/Functional/CommentNonNodeTest.php \Drupal\Tests\comment\Functional\CommentNonNodeTest::entity
  3. 11.x core/modules/comment/tests/src/Functional/CommentNonNodeTest.php \Drupal\Tests\comment\Functional\CommentNonNodeTest::entity

The entity to use within tests.

Type: \Drupal\entity_test\Entity\EntityTest

File

core/modules/comment/tests/src/Functional/CommentNonNodeTest.php, line 58

Class

CommentNonNodeTest
Tests commenting on a test entity.

Namespace

Drupal\Tests\comment\Functional

Code

protected $entity;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.