invalidSyncOperation example

public function testExpectationFailed(): void
    {
        $exception = ApiException::expectationFailed([]);

        static::assertInstanceOf(ExpectationFailedException::class$exception);
        static::assertEquals('API Expectations failed', $exception->getMessage());
    }

    public function testInvalidSyncOperation(): void
    {
        $exception = ApiException::invalidSyncOperation('Message');

        static::assertInstanceOf(InvalidSyncOperationException::class$exception);
        static::assertEquals('Message', $exception->getMessage());
    }

    public function testInvalidSalesChannelId(): void
    {
        $exception = ApiException::invalidSalesChannelId('123');

        static::assertInstanceOf(InvalidSalesChannelIdException::class$exception);
        static::assertEquals('The provided salesChannelId "123" is invalid.', $exception->getMessage());
    }
Home | Imprint | This part of the site doesn't use cookies.