function RecipeConfigStorageWrapperTest::testUnsupportedMethods
Test methods that are unsupported.
Attributes
#[TestWith([
"write",
"name",
[],
])]
#[TestWith([
"delete",
"name",
])]
#[TestWith([
"rename",
"old_name",
"new_name",
])]
#[TestWith([
"deleteAll",
])]
Parameters
string $method: The method to call.
array $args: The arguments to pass to the method.
File
-
core/
tests/ Drupal/ Tests/ Core/ Recipe/ RecipeConfigStorageWrapperTest.php, line 194
Class
Namespace
Drupal\Tests\Core\RecipeCode
public function testUnsupportedMethods(string $method, ...$args) : void {
$this->expectException(\BadMethodCallException::class);
$storage = new RecipeConfigStorageWrapper(new NullStorage(), new NullStorage());
$storage->{$method}(...$args);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.