test: update SequentialSigningServiceTest after IAppConfig removal

Removed IAppConfig mock from test setup to match updated
service constructor signature.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
Vitor Mattos 2025-12-14 13:59:59 -03:00
parent d5e3cae60c
commit 3d9652487c
No known key found for this signature in database
GPG key ID: 6FECE2AD4809003A

View file

@ -14,24 +14,20 @@ use OCA\Libresign\Enum\SignatureFlow;
use OCA\Libresign\Service\IdentifyMethodService;
use OCA\Libresign\Service\SequentialSigningService;
use OCA\Libresign\Tests\Unit\TestCase;
use OCP\IAppConfig;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\MockObject\MockObject;
final class SequentialSigningServiceTest extends TestCase {
private IAppConfig&MockObject $appConfig;
private SignRequestMapper&MockObject $signRequestMapper;
private IdentifyMethodService&MockObject $identifyMethodService;
private SequentialSigningService $service;
public function setUp(): void {
parent::setUp();
$this->appConfig = $this->createMock(IAppConfig::class);
$this->signRequestMapper = $this->createMock(SignRequestMapper::class);
$this->identifyMethodService = $this->createMock(IdentifyMethodService::class);
$this->service = new SequentialSigningService(
$this->appConfig,
$this->signRequestMapper,
$this->identifyMethodService
);