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\Account;
use D3\KlicktippPhpClient\Exceptions\InvalidCredentialTypeException;
use D3\KlicktippPhpClient\Exceptions\MissingEndpointException;
use D3\KlicktippPhpClient\Resources\Account as AccountEndpoint;
use D3\KlicktippPhpClient\tests\TestCase;
use Doctrine\Common\Collections\ArrayCollection;
@ -526,6 +527,10 @@ class AccountTest extends TestCase
$sut = new Account([AccountEndpoint::UID => 'foo'], $endpointSet ? $endpointMock : null);
if (!$endpointSet) {
$this->expectException(MissingEndpointException::class);
}
$this->assertSame(
$expectedReturn,
$this->callMethod(