public function ConfigUpdaterTest::testDelete in Commerce Core 8.2
Tests deleting configuration.
File
- tests/
src/ Kernel/ ConfigUpdaterTest.php, line 127
Class
- ConfigUpdaterTest
- Tests the ConfigUpdater class.
Namespace
Drupal\Tests\commerce\KernelCode
public function testDelete() {
$config_name = 'commerce_store.commerce_store_type.testing';
$result = $this->configUpdater
->delete([
$config_name,
]);
$failed = $result
->getFailed();
$succeeded = $result
->getSucceeded();
$this
->assertEmpty($failed);
$this
->assertEquals($succeeded[$config_name], "{$config_name} was successfully deleted");
}