public function ConfigEntityBaseUnitTest::testSetStatus in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest::testSetStatus()
@covers ::setStatus @covers ::status
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php, line 358 - Contains \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest.
Class
- ConfigEntityBaseUnitTest
- @coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityBase @group Config
Namespace
Drupal\Tests\Core\Config\EntityCode
public function testSetStatus() {
$this
->assertTrue($this->entity
->status());
$this
->assertSame($this->entity, $this->entity
->setStatus(FALSE));
$this
->assertFalse($this->entity
->status());
$this->entity
->setStatus(TRUE);
$this
->assertTrue($this->entity
->status());
}