Skip to content

Commit afacbc4

Browse files
committed
fix: failing tests
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
1 parent 230f6f8 commit afacbc4

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

tests/Unit/Activity/ProviderTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ public function testGetRichParams(string $subject, array $subjectParams, array $
375375
->willReturn($form);
376376

377377
$this->validator->expects($this->any())
378-
->method('validate')
379-
->willReturn(true);
378+
->method('validate');
380379

381380
$this->assertEquals($expected, $this->provider->getRichParams($l10n, $subject, $subjectParams));
382381
}

tests/Unit/FormsMigratorTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ class FormsMigratorTest extends TestCase {
8383
public function setUp(): void {
8484
parent::setUp();
8585

86-
// UserMigration is not available below NC24, skip all tests here.
87-
if (\OC_Util::getVersion()[0] < 24) {
88-
$this->markTestSkipped('UserMigration not available below NC24');
89-
}
90-
9186
$this->answerMapper = $this->createMock(AnswerMapper::class);
9287
$this->formMapper = $this->createMock(FormMapper::class);
9388
$this->optionMapper = $this->createMock(OptionMapper::class);

0 commit comments

Comments
 (0)