diff --git a/src/Interfaces/RequestFactoryInterface.php b/src/Interfaces/RequestFactoryInterface.php index cd83409..54922aa 100644 --- a/src/Interfaces/RequestFactoryInterface.php +++ b/src/Interfaces/RequestFactoryInterface.php @@ -34,6 +34,8 @@ interface RequestFactoryInterface * @param \RetailCrm\Interfaces\AuthenticatorInterface $authenticator * * @return RequestInterface + * @throws \RetailCrm\Component\Exception\FactoryException + * @throws \RetailCrm\Component\Exception\ValidationException */ public function fromModel( BaseRequest $request, diff --git a/src/TopClient/Client.php b/src/TopClient/Client.php index 2e12d77..2a3857a 100644 --- a/src/TopClient/Client.php +++ b/src/TopClient/Client.php @@ -142,6 +142,7 @@ class Client * @return void * @throws \Psr\Http\Client\ClientExceptionInterface * @throws \RetailCrm\Component\Exception\ValidationException + * @throws \RetailCrm\Component\Exception\FactoryException */ public function sendRequest(BaseRequest $request) { diff --git a/tests/RetailCrm/Tests/TopClient/ClientTest.php b/tests/RetailCrm/Tests/TopClient/ClientTest.php index ad5a3fb..a4d8235 100644 --- a/tests/RetailCrm/Tests/TopClient/ClientTest.php +++ b/tests/RetailCrm/Tests/TopClient/ClientTest.php @@ -15,7 +15,6 @@ namespace RetailCrm\Tests\TopClient; use RetailCrm\Builder\ClientBuilder; use RetailCrm\Component\AppData; use RetailCrm\Component\Authenticator\TokenAuthenticator; -use RetailCrm\Component\Exception\ValidationException; use RetailCrm\Model\Request\HttpDnsGetRequest; use RetailCrm\Test\TestCase; @@ -34,7 +33,7 @@ class ClientTest extends TestCase public function testClientRequest() { self::markTestSkipped('Not implemented yet'); - + $client = ClientBuilder::create() ->setContainer($this->getContainer()) ->setAppData(new AppData(AppData::OVERSEAS_ENDPOINT, 'appKey', 'appSecret'))