function RecipeConfigStorageWrapperTest::testDecode
Test that we only use storage A's decode method.
File
- 
              core/tests/ Drupal/ Tests/ Core/ Recipe/ RecipeConfigStorageWrapperTest.php, line 215 
Class
- RecipeConfigStorageWrapperTest
- @coversDefaultClass \Drupal\Core\Recipe\RecipeConfigStorageWrapper[[api-linebreak]] @group Recipe
Namespace
Drupal\Tests\Core\RecipeCode
public function testDecode() : void {
  $a = $this->createMock(StorageInterface::class);
  $b = $this->createMock(StorageInterface::class);
  $storage = new RecipeConfigStorageWrapper($a, $b);
  $this->expectException(\BadMethodCallException::class);
  $storage->decode('value');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
