public function CryptTest::providerTestHmacBase64 in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Utility/CryptTest.php \Drupal\Tests\Component\Utility\CryptTest::providerTestHmacBase64()
Provides data for self::testHmacBase64().
Return value
array Test data.
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ CryptTest.php, line 110 - Contains \Drupal\Tests\Component\Utility\CryptTest.
Class
- CryptTest
- Tests random byte generation.
Namespace
Drupal\Tests\Component\UtilityCode
public function providerTestHmacBase64() {
return array(
array(
'data' => 'Calculates a base-64 encoded, URL-safe sha-256 hmac.',
'key' => 'secret-key',
'expected_hmac' => '2AaH63zwjhekWZlEpAiufyfhAHIzbQhl9Hd9oCi3_c8',
),
);
}