fix test issues
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 2m2s
Tests / PHPUnit (push) Failing after 1m19s

This commit is contained in:
root
2026-08-24 22:14:05 -04:00
parent 9036fcb1f5
commit 5f5afe97ad
2 changed files with 16 additions and 1 deletions
@@ -87,6 +87,11 @@ final class EnrollmentTransitionServiceTest extends TestCase
{
return $this->row;
}
public function getResultArray(): array
{
return $this->row === null ? [] : [$this->row];
}
});
return $builder;
@@ -303,6 +308,7 @@ final class EnrollmentTransitionServiceTest extends TestCase
$builder->method('groupStart')->willReturnSelf();
$builder->method('orWhere')->willReturnSelf();
$builder->method('groupEnd')->willReturnSelf();
$builder->method('whereIn')->willReturnSelf();
$builder->method('orderBy')->willReturnSelf();
$builder->method('limit')->willReturnSelf();
$builder->method('get')->willReturn(new class {
@@ -314,6 +320,11 @@ final class EnrollmentTransitionServiceTest extends TestCase
'bypassed_rule_codes_json' => '[]',
];
}
public function getResultArray(): array
{
return [$this->getRowArray()];
}
});
$db = $this->createMock(BaseConnection::class);