You are here

public function CryptTest::testHmacBase64Invalid in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/Utility/CryptTest.php \Drupal\Tests\Component\Utility\CryptTest::testHmacBase64Invalid()

Tests the hmacBase64 method with invalid parameters.

@dataProvider providerTestHmacBase64Invalid @expectedException InvalidArgumentException @covers ::hmacBase64

Parameters

string $data: Data to hash.

string $key: Key to use in hashing process.

File

core/tests/Drupal/Tests/Component/Utility/CryptTest.php, line 83
Contains \Drupal\Tests\Component\Utility\CryptTest.

Class

CryptTest
Tests random byte generation.

Namespace

Drupal\Tests\Component\Utility

Code

public function testHmacBase64Invalid($data, $key) {
  Crypt::hmacBase64($data, $key);
}