function ConfigEntityBaseUnitTest::testIsSyncing

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest::testIsSyncing()
  2. 9 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest::testIsSyncing()
  3. 8.9.x core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest::testIsSyncing()

Tests is syncing.

@legacy-covers ::setSyncing @legacy-covers ::isSyncing

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php, line 503

Class

ConfigEntityBaseUnitTest
Tests Drupal\Core\Config\Entity\ConfigEntityBase.

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function testIsSyncing() : void {
  $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());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.