mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 07:34:09 +01:00
chore: Move interfaces into Domain
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -24,7 +24,10 @@
|
||||
|
||||
namespace SP\Tests\Modules\Api\Controllers;
|
||||
|
||||
use SP\Core\Acl\AclActionsInterface;
|
||||
use DI\DependencyException;
|
||||
use DI\NotFoundException;
|
||||
use JsonException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Tests\Modules\Api\ApiTestCase;
|
||||
use stdClass;
|
||||
|
||||
@@ -42,9 +45,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
];
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testCreateAction(): void
|
||||
{
|
||||
@@ -65,9 +68,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
private function createClient(?array $params = null): stdClass
|
||||
{
|
||||
@@ -80,9 +83,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testCreateActionDuplicated(): void
|
||||
{
|
||||
@@ -93,9 +96,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testCreateActionRequiredParameters(): void
|
||||
{
|
||||
@@ -112,9 +115,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testViewAction(): void
|
||||
{
|
||||
@@ -146,9 +149,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testViewActionNonExistant(): void
|
||||
{
|
||||
@@ -164,9 +167,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testEditAction(): void
|
||||
{
|
||||
@@ -214,9 +217,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testEditActionDuplicated(): void
|
||||
{
|
||||
@@ -241,9 +244,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testEditActionRequiredParameters(): void
|
||||
{
|
||||
@@ -270,9 +273,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testEditActionNonExistant(): void
|
||||
{
|
||||
@@ -297,9 +300,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
/**
|
||||
* @dataProvider searchProvider
|
||||
*
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \JsonException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws DependencyException
|
||||
* @throws JsonException
|
||||
* @throws NotFoundException
|
||||
*/
|
||||
public function testSearchActionByFilter(array $filter, int $resultsCount): void
|
||||
{
|
||||
@@ -316,9 +319,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testDeleteAction(): void
|
||||
{
|
||||
@@ -340,9 +343,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testDeleteActionNonExistant(): void
|
||||
{
|
||||
@@ -358,9 +361,9 @@ class ClientControllerTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @throws \JsonException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function testDeleteActionRequiredParameters(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user