function ConfigEntityBaseUnitTest::testDisable
Tests disable.
@legacy-covers ::disable
Attributes
#[Depends('testSetStatus')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php, line 490
Class
Namespace
Drupal\Tests\Core\Config\EntityCode
public function testDisable() : void {
$this->entity
->setStatus(TRUE);
$this->assertSame($this->entity, $this->entity
->disable());
$this->assertFalse($this->entity
->status());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.