Skip to content

Commit

Permalink
Test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
edwh committed Oct 18, 2021
1 parent f679575 commit c9723c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions app/Http/Controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,11 @@ public function index(DiscourseService $discourseService)
$group_image->image->path;
}
}

// We don't need to show any nearby groups.
$groupsNearYou = null;
} else {
// We don't have any groups. Find nearby ones to show if we can.
$groupsNearYou = $user->groupsNearby(2);
}

// Find nearby ones to show if we need to.
$groupsNearYou = $user->groupsNearby(2);

return view(
'dashboard.index',
[
Expand Down
1 change: 0 additions & 1 deletion tests/Feature/Dashboard/BasicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function testPageLoads($city, $country, $lat, $lng, $nearbyGroupCount)
'location' => "$city",
':your-groups' => '[]',
':upcoming-events' => '[]',
':past-events' => 'null',
':topics' => '[]',
'see-all-topics-link' => env('DISCOURSE_URL').'/latest',
':is-logged-in' => 'true',
Expand Down

0 comments on commit c9723c5

Please sign in to comment.