function RecipeConfigStorageWrapperTest::testUnsupportedMethods
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Recipe/RecipeConfigStorageWrapperTest.php \Drupal\Tests\Core\Recipe\RecipeConfigStorageWrapperTest::testUnsupportedMethods()
Test methods that are unsupported.
@testWith ["write", "name", []] ["delete", "name"] ["rename", "old_name", "new_name"] ["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 195
Class
- RecipeConfigStorageWrapperTest
- @coversDefaultClass \Drupal\Core\Recipe\RecipeConfigStorageWrapper @group Recipe
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.