mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-22 00:06:53 +01:00
* [ADD] Unit testing. Work in progress
* [MOD] Code refactoring and minor bugfixes
This commit is contained in:
@@ -72,9 +72,7 @@ class CategoryRepositoryTest extends DatabaseTestCase
|
||||
*/
|
||||
public function testGetByName()
|
||||
{
|
||||
$category = self::$repository->getByName('Prueba');
|
||||
|
||||
$this->assertCount(0, $category);
|
||||
$this->assertNull(self::$repository->getByName('Prueba'));
|
||||
|
||||
$category = self::$repository->getByName('Web');
|
||||
|
||||
@@ -133,9 +131,7 @@ class CategoryRepositoryTest extends DatabaseTestCase
|
||||
*/
|
||||
public function testGetById()
|
||||
{
|
||||
$category = self::$repository->getById(10);
|
||||
|
||||
$this->assertCount(0, $category);
|
||||
$this->assertNull(self::$repository->getById(10));
|
||||
|
||||
$category = self::$repository->getById(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user