You are here

public function FormStateTest::providerTestHasValue 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::providerTestHasValue()

File

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

Class

FormStateTest
@coversDefaultClass \Drupal\Core\Form\FormState

Namespace

Drupal\Tests\Core\Form

Code

public function providerTestHasValue() {
  $data = array();
  $data[] = array(
    'foo',
    TRUE,
  );
  $data[] = array(
    array(
      'bar',
      'baz',
    ),
    TRUE,
  );
  $data[] = array(
    array(
      'foo',
      'bar',
      'baz',
    ),
    FALSE,
  );
  $data[] = array(
    'true',
    TRUE,
  );
  $data[] = array(
    'false',
    TRUE,
  );
  $data[] = array(
    'null',
    FALSE,
  );
  return $data;
}