function FormBuilderTest::providerTestInvalidToken

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\FormBuilderTest::providerTestInvalidToken()
  2. 8.9.x core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\FormBuilderTest::providerTestInvalidToken()
  3. 11.x core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\FormBuilderTest::providerTestInvalidToken()

File

core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php, line 898

Class

FormBuilderTest
@coversDefaultClass \Drupal\Core\Form\FormBuilder[[api-linebreak]] @group Form

Namespace

Drupal\Tests\Core\Form

Code

public static 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.