function RecipeMultipleModulesConfigStorageTest::testUnsupportedMethods
Same name and namespace in other branches
- main core/tests/Drupal/Tests/Core/Recipe/RecipeMultipleModulesConfigStorageTest.php \Drupal\Tests\Core\Recipe\RecipeMultipleModulesConfigStorageTest::testUnsupportedMethods()
Tests that write operations throw BadMethodCallException.
Attributes
#[TestWith([
'write',
'name',
[],
])]
#[TestWith([
'delete',
'name',
])]
#[TestWith([
'rename',
'old',
'new',
])]
#[TestWith([
'deleteAll',
])]
Parameters
string $method: The method to call.
mixed ...$args: The arguments to pass.
File
-
core/
tests/ Drupal/ Tests/ Core/ Recipe/ RecipeMultipleModulesConfigStorageTest.php, line 242
Class
- RecipeMultipleModulesConfigStorageTest
- Tests RecipeMultipleModulesConfigStorage.
Namespace
Drupal\Tests\Core\RecipeCode
public function testUnsupportedMethods(string $method, mixed ...$args) : void {
$storage = RecipeMultipleModulesConfigStorage::createFromModuleList([
'system',
], $this->extensionList);
$this->expectException(\BadMethodCallException::class);
$storage->{$method}(...$args);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.