deal with missing entity endpoint

This commit is contained in:
2025-01-17 11:14:11 +01:00
bovenliggende d7b24bb81c
commit cb32040f6e
13 gewijzigde bestanden met toevoegingen van 185 en 16 verwijderingen

Bestand weergeven

@ -19,6 +19,7 @@ namespace D3\KlicktippPhpClient\tests\unit\Entities;
use D3\KlicktippPhpClient\Entities\Subscription;
use D3\KlicktippPhpClient\Exceptions\InvalidCredentialTypeException;
use D3\KlicktippPhpClient\Exceptions\MissingEndpointException;
use D3\KlicktippPhpClient\Resources\SubscriptionProcess as SubscriptionEndpoint;
use D3\KlicktippPhpClient\tests\TestCase;
use Generator;
@ -223,6 +224,10 @@ class SubscriptionTest extends TestCase
$endpointSet ? $endpointMock : null
);
if (!$endpointSet) {
$this->expectException(MissingEndpointException::class);
}
$this->assertSame(
$expectedReturn,
$this->callMethod(