You are here

public function CryptTest::providerTestHmacBase64Invalid in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Utility/CryptTest.php \Drupal\Tests\Component\Utility\CryptTest::providerTestHmacBase64Invalid()
  2. 9 core/tests/Drupal/Tests/Component/Utility/CryptTest.php \Drupal\Tests\Component\Utility\CryptTest::providerTestHmacBase64Invalid()

Provides data for self::testHmacBase64().

Return value

array Test data.

File

core/tests/Drupal/Tests/Component/Utility/CryptTest.php, line 106

Class

CryptTest
Tests random byte generation.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerTestHmacBase64Invalid() {
  return [
    [
      new \stdClass(),
      new \stdClass(),
    ],
    [
      new \stdClass(),
      'string',
    ],
    [
      new \stdClass(),
      1,
    ],
    [
      new \stdClass(),
      0,
    ],
    [
      NULL,
      new \stdClass(),
    ],
    [
      'string',
      new \stdClass(),
    ],
    [
      1,
      new \stdClass(),
    ],
    [
      0,
      new \stdClass(),
    ],
    [
      [],
      [],
    ],
    [
      [],
      NULL,
    ],
    [
      [],
      'string',
    ],
    [
      [],
      1,
    ],
    [
      [],
      0,
    ],
    [
      NULL,
      [],
    ],
    [
      1,
      [],
    ],
    [
      0,
      [],
    ],
    [
      'string',
      [],
    ],
    [
      [],
      NULL,
    ],
    [
      NULL,
      NULL,
    ],
    [
      NULL,
      'string',
    ],
    [
      NULL,
      1,
    ],
    [
      NULL,
      0,
    ],
    [
      1,
      NULL,
    ],
    [
      0,
      NULL,
    ],
    [
      'string',
      NULL,
    ],
  ];
}