@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this); |
| 38 | 38 | $this->cipherHelper = $objectManager->getObject('Adfab\Gdpr\Helper\Cipher'); |
| 39 | - $this->cipherHelper->setKeyAndIv($this->key, base64_decode( $this->initialisationVector ) ); |
|
| 39 | + $this->cipherHelper->setKeyAndIv($this->key, base64_decode($this->initialisationVector)); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function testCrypt() |
| 46 | 46 | { |
| 47 | - $this->assertEquals($this->cryptedMessage, $this->cipherHelper->cipher( $this->clearMessage )); |
|
| 47 | + $this->assertEquals($this->cryptedMessage, $this->cipherHelper->cipher($this->clearMessage)); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -52,6 +52,6 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function testDerypt() |
| 54 | 54 | { |
| 55 | - $this->assertEquals($this->clearMessage, $this->cipherHelper->decipher( $this->cryptedMessage)); |
|
| 55 | + $this->assertEquals($this->clearMessage, $this->cipherHelper->decipher($this->cryptedMessage)); |
|
| 56 | 56 | } |
| 57 | 57 | } |