ResourceTest::$entity

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

The entity.

Type: \Drupal\Core\Entity\EntityInterface

File

core/modules/rest/tests/src/Functional/ResourceTest.php, line 39

Class

ResourceTest
Tests the structure of a REST resource.

Namespace

Drupal\Tests\rest\Functional

Code

protected $entity;

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