diff --git a/Models/Client.php b/Models/Client.php index 456d41c..346a218 100755 --- a/Models/Client.php +++ b/Models/Client.php @@ -290,7 +290,7 @@ class Client /** * Get all media files by type * - * @param int $type Media type + * @param null|int $type Media type * * @return Media[] * diff --git a/tests/Controller/Api/ApiControllerClientTrait.php b/tests/Controller/Api/ApiControllerClientTrait.php index 9c9ed98..ebeebed 100644 --- a/tests/Controller/Api/ApiControllerClientTrait.php +++ b/tests/Controller/Api/ApiControllerClientTrait.php @@ -56,7 +56,6 @@ trait ApiControllerClientTrait $request->setData('country', ISO3166TwoEnum::_USA); $this->module->apiClientCreate($request, $response); - self::assertGreaterThan(0, $response->get('')['response']->getId()); } diff --git a/tests/Models/ClientMapperTest.php b/tests/Models/ClientMapperTest.php index 1c23127..ededef1 100755 --- a/tests/Models/ClientMapperTest.php +++ b/tests/Models/ClientMapperTest.php @@ -49,26 +49,4 @@ final class ClientMapperTest extends \PHPUnit\Framework\TestCase self::assertGreaterThan(0, $client->getId()); self::assertEquals($id, $client->getId()); } - - /** - * @group volume - * @group module - * @coversNothing - */ - public function testClientVolume() : void - { - $profile = ProfileMapper::getFor(1, 'account'); - $profile = $profile instanceof NullProfile ? new Profile() : $profile; - if ($profile->account->getId() === 0) { - $profile->account = new NullAccount(1); - } - - for ($i = 0; $i < 100; ++$i) { - $client = new Client(); - $client->number = (string) \mt_rand(100000, 999999); - - $client->profile = $profile; - ClientMapper::create($client); - } - } } diff --git a/tests/phpunit_default.xml b/tests/phpunit_default.xml index 722365c..9208c99 100755 --- a/tests/phpunit_default.xml +++ b/tests/phpunit_default.xml @@ -1,5 +1,5 @@ - + *vendor*