You are here

public function FormStateTest::providerTestIsCached in Drupal 9

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

Provides test data for testIsCached().

File

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

Class

FormStateTest
@coversDefaultClass \Drupal\Core\Form\FormState

Namespace

Drupal\Tests\Core\Form

Code

public function providerTestIsCached() {
  $data = [];
  $data[] = [
    TRUE,
    TRUE,
    FALSE,
  ];
  $data[] = [
    FALSE,
    TRUE,
    FALSE,
  ];
  $data[] = [
    FALSE,
    FALSE,
    FALSE,
  ];
  $data[] = [
    TRUE,
    FALSE,
    TRUE,
  ];
  $data[] = [
    TRUE,
    NULL,
    TRUE,
  ];
  $data[] = [
    FALSE,
    NULL,
    FALSE,
  ];
  return $data;
}