diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 81cf7258..8914e953 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -75,4 +75,4 @@ jobs: composer update --prefer-dist --no-interaction --no-progress - name: Execute tests - run: vendor/bin/phpunit --verbose + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 77fd9250..d996711f 100644 --- a/composer.json +++ b/composer.json @@ -18,16 +18,16 @@ "php": "^7.2|^8.0", "ext-json": "*", "guzzlehttp/guzzle": "^6.0|^7.0", - "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0", - "illuminate/http": "^6.0|^7.0|^8.0|^9.0|^10.0", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/http": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", "league/oauth1-client": "^1.10.1" }, "require-dev": { "mockery/mockery": "^1.0", - "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0", + "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0", "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^8.0|^9.3" + "phpunit/phpunit": "^8.0|^9.3|^10.4" }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3ab05a9e..9800d488 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -12,7 +12,7 @@ > - ./tests/ + ./tests/ diff --git a/tests/OAuthTwoTest.php b/tests/OAuthTwoTest.php index 5c931c94..2d878c10 100644 --- a/tests/OAuthTwoTest.php +++ b/tests/OAuthTwoTest.php @@ -16,7 +16,6 @@ use PHPUnit\Framework\TestCase; use stdClass; use Symfony\Component\HttpFoundation\RedirectResponse as SymfonyRedirectResponse; -use Symfony\Component\HttpFoundation\Session\SessionInterface; class OAuthTwoTest extends TestCase { @@ -140,7 +139,7 @@ public function testUserReturnsAUserInstanceForTheAuthenticatedRequest() public function testUserReturnsAUserInstanceForTheAuthenticatedFacebookRequest() { $request = Request::create('foo', 'GET', ['state' => str_repeat('A', 40), 'code' => 'code']); - $request->setSession($session = m::mock(SessionInterface::class)); + $request->setLaravelSession($session = m::mock(Session::class)); $session->expects('pull')->with('state')->andReturns(str_repeat('A', 40)); $provider = new FacebookTestProviderStub($request, 'client_id', 'client_secret', 'redirect_uri'); $provider->http = m::mock(stdClass::class);