Skip to content

Commit a417dc6

Browse files
committed
updated the test suite to reflect the changes in the filters
1 parent 2f1abba commit a417dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/OAuthFilterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function test_valid_filter_with_existing_scope()
3535
ResourceServer::shouldReceive('isValid')->once()->andReturn(true);
3636
ResourceServer::shouldReceive('hasScope')->twice()->andReturn(true);
3737

38-
$response = $this->getFilter()->filter('', '', 'scope1,scope2');
38+
$response = $this->getFilter()->filter('', '', 'scope1', 'scope2');
3939
$this->assertNull($response);
4040
}
4141

@@ -44,7 +44,7 @@ public function test_valid_filter_with_unexisting_scope()
4444
ResourceServer::shouldReceive('isValid')->once()->andReturn(true);
4545
ResourceServer::shouldReceive('hasScope')->once()->andReturn(false);
4646

47-
$response = $this->getFilter()->filter('', '', 'scope1,scope2');
47+
$response = $this->getFilter()->filter('', '', 'scope1', 'scope2');
4848
$this->assertTrue($response instanceof Illuminate\Http\JsonResponse);
4949
$this->assertTrue($response->isForbidden());
5050
}

0 commit comments

Comments
 (0)