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