fix test issues
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user