function StorageComparerTest::testCreateChangelistNoChange

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php \Drupal\Tests\Core\Config\StorageComparerTest::testCreateChangelistNoChange()
  2. 10 core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php \Drupal\Tests\Core\Config\StorageComparerTest::testCreateChangelistNoChange()
  3. 11.x core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php \Drupal\Tests\Core\Config\StorageComparerTest::testCreateChangelistNoChange()

@covers ::createChangelist

File

core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php, line 109

Class

StorageComparerTest
@coversDefaultClass \Drupal\Core\Config\StorageComparer @group Config

Namespace

Drupal\Tests\Core\Config

Code

public function testCreateChangelistNoChange() {
    $config_data = $this->getConfigData();
    $config_files = array_keys($config_data);
    $this->sourceStorage
        ->expects($this->once())
        ->method('listAll')
        ->willReturn($config_files);
    $this->targetStorage
        ->expects($this->once())
        ->method('listAll')
        ->willReturn($config_files);
    $this->sourceStorage
        ->expects($this->once())
        ->method('readMultiple')
        ->willReturn($config_data);
    $this->targetStorage
        ->expects($this->once())
        ->method('readMultiple')
        ->willReturn($config_data);
    $this->sourceStorage
        ->expects($this->once())
        ->method('getAllCollectionNames')
        ->willReturn([]);
    $this->targetStorage
        ->expects($this->once())
        ->method('getAllCollectionNames')
        ->willReturn([]);
    $this->storageComparer
        ->createChangelist();
    $this->assertEmpty($this->storageComparer
        ->getChangelist('create'));
    $this->assertEmpty($this->storageComparer
        ->getChangelist('delete'));
    $this->assertEmpty($this->storageComparer
        ->getChangelist('update'));
}

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