Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't load DuskServiceProvider if dusk doesn't exist #2366

Merged
merged 12 commits into from
Jan 18, 2024
3 changes: 3 additions & 0 deletions src/DuskServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
{
public function boot(): void
{
if (!class_exists(\Laravel\Dusk\Browser::class)) {
Tofandel marked this conversation as resolved.
Show resolved Hide resolved
return;

Check warning on line 18 in src/DuskServiceProvider.php

View check run for this annotation

Codecov / codecov/patch

src/DuskServiceProvider.php#L18

Added line #L18 was not covered by tests
}
Browser::macro('setBrowserLocationToParis', function () {
$this->setLocationToLatLon(48.864716, 2.349014, 'Europe/Paris');
});
Expand Down
Loading