* [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

@@ -105,8 +105,7 @@ class UserGroupRepositoryTestCase extends DatabaseTestCase
$this->assertEquals('Demo', $group->getName());
$this->assertEmpty($group->getDescription());
$group = self::$repository->getByName('Prueba');
$this->assertCount(0, $group);
$this->assertNull(self::$repository->getByName('Prueba'));
}
/**
@@ -164,8 +163,7 @@ class UserGroupRepositoryTestCase extends DatabaseTestCase
$this->assertEquals('Demo', $group->getName());
$this->assertEmpty($group->getDescription());
$group = self::$repository->getById(4);
$this->assertCount(0, $group);
$this->assertNull(self::$repository->getById(4));
}
/**