Skip to content

Commit

Permalink
Add support for Laravel 9 (#32)
Browse files Browse the repository at this point in the history
* Update method signature in AbstractTestCase

Fixes Fatal error: Declaration of Cog\Tests\Laravel\Optimus\AbstractTestCase::getServiceProviderClass($app) must be compatible with GrahamCampbell\TestBench\AbstractPackageTestCase::getServiceProviderClass()

* Add support for Laravel 9
  • Loading branch information
ivanvermeyen authored Feb 11, 2022
1 parent 87308aa commit 8114d55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"require": {
"php": "^7.1.3|^8.0",
"graham-campbell/manager": "^4.0",
"illuminate/contracts": "^5.5|^6.0|^7.0|^8.0",
"illuminate/support": "^5.5|^6.0|^7.0|^8.0",
"illuminate/contracts": "^5.5|^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^5.5|^6.0|^7.0|^8.0|^9.0",
"jenssegers/optimus": "^0.2.2"
},
"require-dev": {
Expand Down
4 changes: 1 addition & 3 deletions tests/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ abstract class AbstractTestCase extends AbstractPackageTestCase
/**
* Get the service provider class.
*
* @param \Illuminate\Contracts\Foundation\Application $app
*
* @return string
*/
protected function getServiceProviderClass($app)
protected function getServiceProviderClass()
{
return OptimusServiceProvider::class;
}
Expand Down

0 comments on commit 8114d55

Please sign in to comment.