You are here

public function ConfigEntityBaseUnitTest::testEnable in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest::testEnable()

@covers ::enable @depends testSetStatus

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php, line 447
Contains \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest.

Class

ConfigEntityBaseUnitTest
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityBase @group Config

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function testEnable() {
  $this->entity
    ->setStatus(FALSE);
  $this
    ->assertSame($this->entity, $this->entity
    ->enable());
  $this
    ->assertTrue($this->entity
    ->status());
}