function CsrfTokenGeneratorTest::providerTestValidateParameterTypes

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php \Drupal\Tests\Core\Access\CsrfTokenGeneratorTest::providerTestValidateParameterTypes()
  2. 8.9.x core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php \Drupal\Tests\Core\Access\CsrfTokenGeneratorTest::providerTestValidateParameterTypes()
  3. 10 core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php \Drupal\Tests\Core\Access\CsrfTokenGeneratorTest::providerTestValidateParameterTypes()

Provides data for testValidateParameterTypes.

Return value

array An array of data used by the test.

File

core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php, line 160

Class

CsrfTokenGeneratorTest
Tests the CsrfTokenGenerator class.

Namespace

Drupal\Tests\Core\Access

Code

public static function providerTestValidateParameterTypes() {
  return [
    [
      [],
      '',
    ],
    [
      TRUE,
      'foo',
    ],
    [
      0,
      'foo',
    ],
  ];
}

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