Skip to content

Commit

Permalink
Updated for Laravel 11 and Pest
Browse files Browse the repository at this point in the history
  • Loading branch information
chinleung committed Feb 4, 2025
1 parent 88b73e9 commit 5218963
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 88 deletions.
13 changes: 4 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@
}
],
"require": {
"php": "^7.2",
"php": "^8.2",
"browserstack/browserstack-local": "^1.1",
"guzzlehttp/guzzle": "^6.5|^7.0",
"illuminate/support": "~5.8.0|^6.0|^7.0|^8.0",
"laravel/dusk": "^5.9|^6.0"
},
"require-dev": {
"orchestra/testbench": "3.8.*",
"phpunit/phpunit": "^8.0"
"guzzlehttp/guzzle": "^7.2",
"illuminate/support": "^11.0",
"laravel/dusk": "^8.2"
},
"autoload": {
"psr-4": {
Expand All @@ -43,7 +39,6 @@
"scripts": {
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"

},
"config": {
"sort-packages": true
Expand Down
1 change: 1 addition & 0 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
|--------------------------------------------------------------------------
|
| The configuration for capabilities of the browser.
|
| https://www.browserstack.com/automate/capabilities
|
*/
Expand Down
8 changes: 2 additions & 6 deletions src/BrowserStackServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ class BrowserStackServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
public function boot(): void
{
if ($this->app->runningInConsole()) {
$this->publishes([
Expand All @@ -22,10 +20,8 @@ public function boot()

/**
* Register the application services.
*
* @return void
*/
public function register()
public function register(): void
{
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'browserstack');
}
Expand Down
Loading

0 comments on commit 5218963

Please sign in to comment.