|
12 | 12 | */
|
13 | 13 | class LinkpayV2Test extends BaseIntegrationTest
|
14 | 14 | {
|
| 15 | + private static ?string $token = null; |
| 16 | + |
| 17 | + protected function setUp(): void |
| 18 | + { |
| 19 | + parent::setUp(); |
| 20 | + self::$token = $this->unzer->prepareJwtToken(self::$token); |
| 21 | + } |
| 22 | + |
15 | 23 | /**
|
16 | 24 | * @test
|
17 | 25 | */
|
@@ -128,7 +136,8 @@ public function updateLinkpayExpiryDate()
|
128 | 136 | $this->assertEquals($paypage->getCurrency(), $updatePaypage->getCurrency());
|
129 | 137 | $this->assertEquals($paypage->getAlias(), $updatePaypage->getAlias());
|
130 | 138 | $this->assertEquals($paypage->getAmountSettings(), $updatePaypage->getAmountSettings());
|
131 |
| - $this->assertEquals($paypage->getResources(), $updatePaypage->getResources()); |
| 139 | + |
| 140 | + $this->assertNotEmpty($updatePaypage->getResources()->getMetadataId()); |
132 | 141 | }
|
133 | 142 |
|
134 | 143 | /**
|
@@ -167,8 +176,11 @@ public function updateLinkpayAmount()
|
167 | 176 | $this->assertEquals($paypage->getCurrency(), $updatePaypage->getCurrency());
|
168 | 177 | $this->assertEquals($paypage->getAlias(), $updatePaypage->getAlias());
|
169 | 178 | $this->assertEquals($paypage->getAmountSettings(), $updatePaypage->getAmountSettings());
|
170 |
| - $this->assertEquals($paypage->getResources(), $updatePaypage->getResources()); |
171 | 179 | $this->assertEquals($paypage->getExpiresAt(), $updatePaypage->getExpiresAt());
|
| 180 | + |
| 181 | + $this->assertNotEmpty($updatePaypage->getResources()->getMetadataId()); |
| 182 | + $this->assertEmpty($updatePaypage->getResources()->getCustomerId()); |
| 183 | + $this->assertEmpty($updatePaypage->getResources()->getBasketId()); |
172 | 184 | }
|
173 | 185 |
|
174 | 186 | /**
|
@@ -208,8 +220,11 @@ public function updateLinkpayAmountSettings()
|
208 | 220 | $this->assertEquals($paypage->getAmount(), $updatePaypage->getAmount());
|
209 | 221 | $this->assertEquals($paypage->getCurrency(), $updatePaypage->getCurrency());
|
210 | 222 | $this->assertEquals($paypage->getExpiresAt(), $updatePaypage->getExpiresAt());
|
211 |
| - $this->assertEquals($paypage->getResources(), $updatePaypage->getResources()); |
212 | 223 | $this->assertEquals('linkpay', $paypage->getType());
|
| 224 | + |
| 225 | + $this->assertNotEmpty($updatePaypage->getResources()->getMetadataId()); |
| 226 | + $this->assertEmpty($updatePaypage->getResources()->getCustomerId()); |
| 227 | + $this->assertEmpty($updatePaypage->getResources()->getBasketId()); |
213 | 228 | }
|
214 | 229 |
|
215 | 230 | /**
|
|
0 commit comments