You are here

public function FormBuilderTest::providerTestInvalidToken in Zircon Profile 8

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

File

core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php, line 806
Contains \Drupal\Tests\Core\Form\FormBuilderTest.

Class

FormBuilderTest
@coversDefaultClass \Drupal\Core\Form\FormBuilder @group Form

Namespace

Drupal\Tests\Core\Form

Code

public function providerTestInvalidToken() {
  $data = [];
  $data['authenticated_invalid'] = [
    TRUE,
    FALSE,
    TRUE,
  ];
  $data['authenticated_valid'] = [
    FALSE,
    TRUE,
    TRUE,
  ];

  // If the user is not authenticated, we will not have a token.
  $data['anonymous'] = [
    FALSE,
    NULL,
    FALSE,
  ];
  return $data;
}