You are here

public function FormStateTest::providerTestGetValue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Form/FormStateTest.php \Drupal\Tests\Core\Form\FormStateTest::providerTestGetValue()

File

core/tests/Drupal/Tests/Core/Form/FormStateTest.php, line 184
Contains \Drupal\Tests\Core\Form\FormStateTest.

Class

FormStateTest
@coversDefaultClass \Drupal\Core\Form\FormState

Namespace

Drupal\Tests\Core\Form

Code

public function providerTestGetValue() {
  $data = array();
  $data[] = array(
    'foo',
    'one',
  );
  $data[] = array(
    array(
      'bar',
      'baz',
    ),
    'two',
  );
  $data[] = array(
    array(
      'foo',
      'bar',
      'baz',
    ),
    NULL,
  );
  $data[] = array(
    'baz',
    'baz',
    'baz',
  );
  return $data;
}