This change updates the namespace across multiple files to reflect the new naming convention.
44 lines
1.2 KiB
PHP
44 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Psr\Http\Client\ClientInterface;
|
|
use Tests\TestCase;
|
|
use Uwil\ArcadiaApiPhpClient\Lib\ApiCaller;
|
|
use Uwil\ArcadiaApiPhpClient\Lib\ApiConfig;
|
|
use Uwil\ArcadiaApiPhpClient\Lib\ApiDto\Factory\DtoFactory;
|
|
use Uwil\ArcadiaApiPhpClient\Lib\Psr7\RequestFactory;
|
|
use Uwil\ArcadiaApiPhpClient\Mapper\IncoCompoMapper;
|
|
use Uwil\ArcadiaApiPhpClient\Repository\IncoCompoGenesisRepository;
|
|
|
|
uses(TestCase::class);
|
|
|
|
beforeEach(function () {
|
|
/** @disregard P1056 */
|
|
$this->client = \Mockery::mock(ClientInterface::class);
|
|
/** @disregard P1056 */
|
|
$this->requestFactory = \Mockery::mock(RequestFactory::class);
|
|
/** @disregard P1056 */
|
|
$this->apiConfig = \Mockery::mock(ApiConfig::class);
|
|
});
|
|
|
|
afterEach(function () {
|
|
\Mockery::close();
|
|
});
|
|
|
|
describe('Inco Compo Genesis Repository', function (): void {
|
|
|
|
it('can instanciate', function (): void {
|
|
// GIVEN
|
|
$apiCaller = \Mockery::mock(ApiCaller::class);
|
|
$dtoFactory = \Mockery::mock(DtoFactory::class);
|
|
$model = new IncoCompoMapper();
|
|
|
|
// WHEN / THEN
|
|
new IncoCompoGenesisRepository(
|
|
$apiCaller,
|
|
$dtoFactory,
|
|
$model
|
|
);
|
|
})->throwsNoExceptions();
|
|
});
|