You are here

public function FormStateTest::providerTestIsValueEmpty in Zircon Profile 8.0

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

File

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

Class

FormStateTest
@coversDefaultClass \Drupal\Core\Form\FormState

Namespace

Drupal\Tests\Core\Form

Code

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