Skip to content

Commit e33e225

Browse files
committed
Add test
1 parent 12ecafb commit e33e225

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/Unit/LegalEntityManagementTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Adyen\Service\LegalEntityManagement\TermsOfServiceApi;
1212
use Adyen\Service\LegalEntityManagement\TransferInstrumentsApi;
1313
use function PHPUnit\Framework\assertEquals;
14+
use Adyen\Environment;
1415

1516
class LegalEntityManagementTest extends TestCaseMock
1617
{
@@ -74,4 +75,15 @@ public function testUpdateTransferInstrument()
7475
);
7576
assertEquals('auLocal', $response->getBankAccount()->getAccountIdentification()->getType());
7677
}
78+
79+
public function testRequestPeriodicReview()
80+
{
81+
$client = $this->createMockClientUrl(null, Environment::TEST);
82+
$service = new LegalEntitiesApi($client);
83+
$service->requestPeriodicReview('LE322JV223222F5GVGMLNB83F');
84+
self::assertEquals(
85+
'https://kyc-test.adyen.com/lem/v4/legalEntities/LE322JV223222F5GVGMLNB83F/requestPeriodicReview',
86+
$this->requestUrl
87+
);
88+
}
7789
}

0 commit comments

Comments
 (0)