public function ConfigStorageStagingTest::testConfigStorageStagingDeprecation in Drupal 9
Tests deprecation of the "config.storage.staging" service.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigStorageStagingTest.php, line 19
Class
- ConfigStorageStagingTest
- Tests that the service "config.storage.staging" has been deprecated.
Namespace
Drupal\KernelTests\Core\ConfigCode
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');
// Ensure at least one assertion.
$this
->assertInstanceOf(FileStorage::class, $storage_staging);
}