You are here

public function ConfigEntityBaseUnitTest::testIsSyncing in Zircon Profile 8.0

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

@covers ::setSyncing @covers ::isSyncing

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php, line 390
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 testIsSyncing() {
  $this
    ->assertFalse($this->entity
    ->isSyncing());
  $this
    ->assertSame($this->entity, $this->entity
    ->setSyncing(TRUE));
  $this
    ->assertTrue($this->entity
    ->isSyncing());
  $this->entity
    ->setSyncing(FALSE);
  $this
    ->assertFalse($this->entity
    ->isSyncing());
}