test(refactor): Extract duplicated code

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2024-09-01 17:39:02 +02:00
parent 419915a866
commit 4d1708ed90
20 changed files with 441 additions and 606 deletions

View File

@@ -31,8 +31,6 @@ use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\MockObject\Exception;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use SP\Domain\Core\Exceptions\InvalidClassException;
use SP\Infrastructure\File\FileException;
use SP\Tests\IntegrationTestCase;
/**
@@ -46,8 +44,6 @@ class ConfigAccountControllerTest extends IntegrationTestCase
* @throws ContainerExceptionInterface
* @throws Exception
* @throws NotFoundExceptionInterface
* @throws InvalidClassException
* @throws FileException
*/
#[Test]
public function save()
@@ -71,7 +67,6 @@ class ConfigAccountControllerTest extends IntegrationTestCase
];
$container = $this->buildContainer(
$this->getModuleDefinitions(),
$this->buildRequest('post', 'index.php', ['r' => 'configAccount/save'], $data)
);