function EntityComputedFieldTest::setUp

Same name in other branches
  1. 11.x core/modules/system/tests/src/Functional/Entity/EntityComputedFieldTest.php \Drupal\Tests\system\Functional\Entity\EntityComputedFieldTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/Entity/EntityComputedFieldTest.php, line 36

Class

EntityComputedFieldTest
Tests that entities with computed fields work correctly.

Namespace

Drupal\Tests\system\Functional\Entity

Code

protected function setUp() : void {
    parent::setUp();
    $this->state = $this->container
        ->get('state');
}

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