You are here

public function ConfigEntityBaseUnitTest::testDisable in Zircon Profile 8

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

@covers ::disable @depends testSetStatus

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php, line 380
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 testDisable() {
  $this->entity
    ->setStatus(TRUE);
  $this
    ->assertSame($this->entity, $this->entity
    ->disable());
  $this
    ->assertFalse($this->entity
    ->status());
}