@@ -80,21 +80,21 @@ discard block |
||
| 80 | 80 | $this->assertSame($return, $shopDomain); |
| 81 | 81 | |
| 82 | 82 | $shopDomain = null; |
| 83 | - $this->assertNull($shopDomain); |
|
| 83 | + $this->assertNull($shopDomain); |
|
| 84 | 84 | $return = $this->component->setShopDomain($shopDomain); |
| 85 | 85 | $this->assertNull($return); |
| 86 | 86 | $return = $this->component->getShopDomain(); |
| 87 | 87 | $this->assertNull($return); |
| 88 | 88 | |
| 89 | 89 | $shopDomain = false; |
| 90 | - $this->assertFalse($shopDomain); |
|
| 90 | + $this->assertFalse($shopDomain); |
|
| 91 | 91 | $return = $this->component->setShopDomain($shopDomain); |
| 92 | 92 | $this->assertFalse($return); |
| 93 | 93 | $return = $this->component->getShopDomain(); |
| 94 | 94 | $this->assertFalse($return); |
| 95 | 95 | |
| 96 | 96 | $shopDomain = true; |
| 97 | - $this->assertTrue($shopDomain); |
|
| 97 | + $this->assertTrue($shopDomain); |
|
| 98 | 98 | $return = $this->component->setShopDomain($shopDomain); |
| 99 | 99 | $this->assertTrue($return); |
| 100 | 100 | $return = $this->component->getShopDomain(); |
@@ -170,46 +170,46 @@ discard block |
||
| 170 | 170 | $return = $this->component->getNonce(); |
| 171 | 171 | $this->assertSame($return, '339fdccae930940993141bde32be560f'); |
| 172 | 172 | |
| 173 | - $shopDomain = "example.com"; //5ababd603b22780302dd8d83498e5172 |
|
| 173 | + $shopDomain = "example.com"; //5ababd603b22780302dd8d83498e5172 |
|
| 174 | 174 | $return = $this->component->setNonce($shopDomain); |
| 175 | 175 | $this->assertSame($return, '5ababd603b22780302dd8d83498e5172'); |
| 176 | 176 | $return = $this->component->getNonce(); |
| 177 | 177 | $this->assertSame($return, '5ababd603b22780302dd8d83498e5172'); |
| 178 | 178 | |
| 179 | 179 | $shopDomain = null; //d41d8cd98f00b204e9800998ecf8427e |
| 180 | - $this->assertNull($shopDomain); |
|
| 180 | + $this->assertNull($shopDomain); |
|
| 181 | 181 | $return = $this->component->setNonce($shopDomain); |
| 182 | 182 | $this->assertSame($return, 'd41d8cd98f00b204e9800998ecf8427e'); |
| 183 | 183 | $return = $this->component->getNonce(); |
| 184 | 184 | $this->assertSame($return, 'd41d8cd98f00b204e9800998ecf8427e'); |
| 185 | 185 | |
| 186 | 186 | $shopDomain = false; //d41d8cd98f00b204e9800998ecf8427e |
| 187 | - $this->assertFalse($shopDomain); |
|
| 187 | + $this->assertFalse($shopDomain); |
|
| 188 | 188 | $return = $this->component->setNonce($shopDomain); |
| 189 | 189 | $this->assertSame($return, 'd41d8cd98f00b204e9800998ecf8427e'); |
| 190 | 190 | $return = $this->component->getNonce(); |
| 191 | 191 | $this->assertSame($return, 'd41d8cd98f00b204e9800998ecf8427e'); |
| 192 | 192 | |
| 193 | 193 | $shopDomain = true; //c4ca4238a0b923820dcc509a6f75849b |
| 194 | - $this->assertTrue($shopDomain); |
|
| 194 | + $this->assertTrue($shopDomain); |
|
| 195 | 195 | $return = $this->component->setNonce($nonce); |
| 196 | 196 | $this->assertSame($return, 'c4ca4238a0b923820dcc509a6f75849b'); |
| 197 | 197 | $return = $this->component->getNonce(); |
| 198 | 198 | $this->assertSame($return, 'c4ca4238a0b923820dcc509a6f75849b'); |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - public function testValidateHMAC() |
|
| 202 | - { |
|
| 203 | - $return = $this->component->validateHMAC(null); |
|
| 204 | - $this->assertFalse($return); |
|
| 201 | + public function testValidateHMAC() |
|
| 202 | + { |
|
| 203 | + $return = $this->component->validateHMAC(null); |
|
| 204 | + $this->assertFalse($return); |
|
| 205 | 205 | |
| 206 | - $return = $this->component->validateHMAC([]); |
|
| 207 | - $this->assertFalse($return); |
|
| 206 | + $return = $this->component->validateHMAC([]); |
|
| 207 | + $this->assertFalse($return); |
|
| 208 | 208 | |
| 209 | - $return = $this->component->validateHMAC(['hmac' => null]); |
|
| 210 | - $this->assertFalse($return); |
|
| 209 | + $return = $this->component->validateHMAC(['hmac' => null]); |
|
| 210 | + $this->assertFalse($return); |
|
| 211 | 211 | |
| 212 | - $return = $this->component->validateHMAC(['hmac' => 'string']); |
|
| 213 | - $this->assertFalse($return); |
|
| 214 | - } |
|
| 212 | + $return = $this->component->validateHMAC(['hmac' => 'string']); |
|
| 213 | + $this->assertFalse($return); |
|
| 214 | + } |
|
| 215 | 215 | } |