. */ declare(strict_types=1); namespace SP\Tests\Modules\Web\Controllers\ConfigEncryption; use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\MockObject\Exception; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; use SP\Tests\InjectVault; use SP\Tests\IntegrationTestCase; /** * Class RefreshControllerTest */ #[Group('integration')] #[InjectVault] class RefreshControllerTest extends IntegrationTestCase { /** * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface * @throws Exception */ #[Test] public function refresh() { $container = $this->buildContainer( $this->buildRequest('get', 'index.php', ['r' => 'configEncryption/refresh']) ); $this->runApp($container); $this->expectOutputString('{"status":"OK","description":"Master password hash updated","data":null}'); } }