mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 07:34:09 +01:00
* [ADD] Unit testing. Work in progress
* [MOD] Code refactoring and minor bugfixes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user