mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-07 00:46:59 +01:00
test(refactor): Extract duplicated code
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -33,9 +33,7 @@ use PHPUnit\Framework\MockObject\Stub;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
use SP\Domain\Config\Ports\ConfigDataInterface;
|
||||
use SP\Domain\Core\Exceptions\InvalidClassException;
|
||||
use SP\Domain\User\Models\ProfileData;
|
||||
use SP\Infrastructure\File\FileException;
|
||||
use SP\Tests\BodyChecker;
|
||||
use SP\Tests\IntegrationTestCase;
|
||||
use Symfony\Component\DomCrawler\Crawler;
|
||||
@@ -47,10 +45,8 @@ use Symfony\Component\DomCrawler\Crawler;
|
||||
class IndexControllerTest extends IntegrationTestCase
|
||||
{
|
||||
/**
|
||||
* @throws Exception
|
||||
* @throws FileException
|
||||
* @throws InvalidClassException
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws Exception
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
#[Test]
|
||||
@@ -58,7 +54,6 @@ class IndexControllerTest extends IntegrationTestCase
|
||||
public function index()
|
||||
{
|
||||
$container = $this->buildContainer(
|
||||
$this->getModuleDefinitions(),
|
||||
$this->buildRequest('get', 'index.php', ['r' => 'accessManager/index'])
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user