You are here

public function SubformStateTest::testGetValueBroken in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Form/SubformStateTest.php \Drupal\Tests\Core\Form\SubformStateTest::testGetValueBroken()
  2. 9 core/tests/Drupal/Tests/Core/Form/SubformStateTest.php \Drupal\Tests\Core\Form\SubformStateTest::testGetValueBroken()

@covers ::getValue

@dataProvider providerTestGetValueBroken

File

core/tests/Drupal/Tests/Core/Form/SubformStateTest.php, line 168

Class

SubformStateTest
@coversDefaultClass \Drupal\Core\Form\SubformState

Namespace

Drupal\Tests\Core\Form

Code

public function testGetValueBroken(array $parents, $key, $expected, $default = NULL) {
  $this
    ->expectException(\UnexpectedValueException::class);
  $this
    ->testGetValue($parents, $key, $expected, $default);
}