diff --git a/core/tests/Drupal/Tests/Component/Utility/CryptTest.php b/core/tests/Drupal/Tests/Component/Utility/CryptTest.php index fca79ac..3e32fae 100644 --- a/core/tests/Drupal/Tests/Component/Utility/CryptTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/CryptTest.php @@ -42,9 +42,9 @@ public function testRandomBytes() { * * @dataProvider providerTestHashBase64 */ - public function testHashBase64($data, $expectedHash) { + public function testHashBase64($data, $expected_hash) { $hash = Crypt::hashBase64($data); - $this->assertEquals($expectedHash, $hash, 'The correct hash was not calculated.'); + $this->assertEquals($expected_hash, $hash, 'The correct hash was not calculated.'); } /** @@ -52,9 +52,9 @@ public function testHashBase64($data, $expectedHash) { * * @dataProvider providerTestHmacBase64 */ - public function testHmacBase64($data, $key, $expectedHmac) { + public function testHmacBase64($data, $key, $expected_hmac) { $hmac = Crypt::hmacBase64($data, $key); - $this->assertEquals($expectedHmac, $hmac, 'The correct hmac was not calculated.'); + $this->assertEquals($expected_hmac, $hmac, 'The correct hmac was not calculated.'); } /** @@ -68,7 +68,7 @@ public static function providerTestHashBase64() { ), array( 'data' => 'SHA-256 is one of the successor hash functions to SHA-1, and is one of the strongest hash functions available.', - 'expectedHash' => 'yuqkDDYqprL71k4xIb6K6D7n76xldO4jseRhEkEE6SI', + 'expected_hash' => 'yuqkDDYqprL71k4xIb6K6D7n76xldO4jseRhEkEE6SI', ), ); } @@ -81,7 +81,7 @@ public static function providerTestHmacBase64() { array( 'data' => 'Calculates a base-64 encoded, URL-safe sha-256 hmac.', 'key' => 'secret-key', - 'expectedHmac' => '2AaH63zwjhekWZlEpAiufyfhAHIzbQhl9Hd9oCi3_c8', + 'expected_hmac' => '2AaH63zwjhekWZlEpAiufyfhAHIzbQhl9Hd9oCi3_c8', ), ); }