ConfigStorageStagingTest.php in Drupal 9
File
core/tests/Drupal/KernelTests/Core/Config/ConfigStorageStagingTest.php
View source
<?php
namespace Drupal\KernelTests\Core\Config;
use Drupal\Core\Config\FileStorage;
use Drupal\KernelTests\KernelTestBase;
class ConfigStorageStagingTest extends KernelTestBase {
public function testConfigStorageStagingDeprecation() {
$this
->expectDeprecation('The "config.storage.staging" service is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use the "config.storage.sync" service instead. See https://www.drupal.org/node/2574957');
$storage_staging = \Drupal::service('config.storage.staging');
$this
->assertInstanceOf(FileStorage::class, $storage_staging);
}
}