$this->sourceStorage =
$this->
createMock('Drupal\Core\Config\StorageInterface'
);
$this->targetStorage =
$this->
createMock('Drupal\Core\Config\StorageInterface'
);
$this->sourceStorage->
expects($this->
atLeastOnce()) ->
method('getCollectionName'
) ->
will($this->
returnValue(StorageInterface::DEFAULT_COLLECTION
));
$this->targetStorage->
expects($this->
atLeastOnce()) ->
method('getCollectionName'
) ->
will($this->
returnValue(StorageInterface::DEFAULT_COLLECTION
));
$this->storageComparer =
new StorageComparer($this->sourceStorage,
$this->targetStorage
);
} protected function getConfigData() { $uuid =
new Php();
// Mock data using minimal data to use ConfigDependencyManger.
$this->configData =
[ // Simple config that controls configuration sync.
'system.site' =>
[ 'title' => 'Drupal',
'uuid' =>
$uuid->
generate(),
],