* [ADD] Unit testing. Work in progress

* [MOD] Code refactoring and minor bugfixes
This commit is contained in:
nuxsmin
2018-07-02 01:18:41 +02:00
parent ae8f6ff7fe
commit e78f853a79
50 changed files with 2139 additions and 1808 deletions

View File

@@ -73,9 +73,7 @@ class ClientRepositoryTest extends DatabaseTestCase
*/
public function testGetByName()
{
$client = self::$repository->getByName('Amazon');
$this->assertCount(0, $client);
$this->assertNull(self::$repository->getByName('Amazon'));
$client = self::$repository->getByName('Google');
@@ -133,9 +131,7 @@ class ClientRepositoryTest extends DatabaseTestCase
*/
public function testGetById()
{
$client = self::$repository->getById(10);
$this->assertCount(0, $client);
$this->assertNull(self::$repository->getById(10));
$client = self::$repository->getById(1);