Skip to content

Commit

Permalink
merge remote
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephster committed Mar 22, 2023
2 parents ac02716 + f6b884e commit ce7e35f
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 102 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/backwards-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
uses: "actions/checkout@v2"
with:
fetch-depth: 0

- name: Fix git safe.directory in container
run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig
- name: "Backwards Compatibility Check"
uses: docker://nyholm/roave-bc-check-ga
with:
Expand Down
7 changes: 4 additions & 3 deletions tests/AuthorizationServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
class AuthorizationServerTest extends TestCase
{
const DEFAULT_SCOPE = 'basic';
const REDIRECT_URI = 'https://foo/bar';

public function setUp(): void
{
Expand Down Expand Up @@ -86,7 +87,7 @@ public function testRespondToRequest()
$client = new ClientEntity();

$client->setConfidential();
$client->setRedirectUri('http://foo/bar');
$client->setRedirectUri(self::REDIRECT_URI);

$clientRepository = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
$clientRepository->method('getClientEntity')->willReturn($client);
Expand Down Expand Up @@ -246,7 +247,7 @@ public function testCompleteAuthorizationRequest()
$server->enableGrantType($grant);

$client = new ClientEntity();
$client->setRedirectUri('https://foo/bar');
$client->setRedirectUri(self::REDIRECT_URI);

$authRequest = new AuthorizationRequest();
$authRequest->setAuthorizationApproved(true);
Expand All @@ -263,7 +264,7 @@ public function testCompleteAuthorizationRequest()
public function testValidateAuthorizationRequest()
{
$client = new ClientEntity();
$client->setRedirectUri('http://foo/bar');
$client->setRedirectUri(self::REDIRECT_URI);
$client->setConfidential();
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
$clientRepositoryMock->method('getClientEntity')->willReturn($client);
Expand Down
2 changes: 1 addition & 1 deletion tests/Bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

error_reporting(E_ALL);
\error_reporting(E_ALL);

if (!@include_once __DIR__ . '/../vendor/autoload.php') {
$message = <<<MSG
Expand Down
Loading

0 comments on commit ce7e35f

Please sign in to comment.