Skip to content

Commit 0516173

Browse files
author
Luca Degasperi
committed
More tests
1 parent d13fb70 commit 0516173

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/AuthorizationServerProxyTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ public function test_check_authorize_params()
7575
$this->assertEquals($this->getStub(), $response);
7676
}
7777

78+
public function test_new_authorize_request()
79+
{
80+
$mock = $this->getServer();
81+
$mock->shouldReceive('getGrantType->newAuthoriseRequest')->andReturn('example_code');
82+
83+
$response = $this->getProxy($mock)->newAuthorizeRequest('user', 1, $this->getStub());
84+
85+
$this->assertEquals('example_code', $response);
86+
}
87+
7888
public function test_access_token_correctly_issued()
7989
{
8090
$mock = $this->getServer();

0 commit comments

Comments
 (0)