Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrLevin committed Jul 30, 2024
1 parent e062656 commit 8045273
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/API/v1/TransportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public function create(Request $request): JsonResponse {
$dto->setUser($user);
$dto->setStatusVisibility($user->default_status_visibility);
$checkin = TrainCheckinController::checkin($dto);
$user->notify(new YouHaveBeenCheckedIn($checkin['status'], auth()->user()));
$user->notify(new YouHaveBeenCheckedIn($checkin->status, auth()->user()));
}

return $this->sendResponse(new CheckinSuccessResource($checkinResponse), 201);
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Services/ReportServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testCheckString(array $expected, string $haystack): void {


/**
* @dataProvider testCheckStringProvider
* @dataProvider checkStringProvider
*/
public function testCheckAndReport(array $expected, string $haystack): void {
$repository = $this->mock(ReportRepository::class);
Expand All @@ -50,7 +50,7 @@ public function testCheckAndReport(array $expected, string $haystack): void {
$reportService->checkAndReport($haystack, ReportableSubject::TRIP, 1);
}

public static function testCheckStringProvider(): array {
public static function checkStringProvider(): array {
return [
'match first word' => [
['auto'],
Expand Down

0 comments on commit 8045273

Please sign in to comment.