File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 12
12
use Symfony \Component \HttpFoundation \Request ;
13
13
use Symfony \Component \HttpFoundation \RequestStack ;
14
14
15
+ /**
16
+ * Class AuthorizeFormHandlerTest
17
+ * @package FOS\OAuthServerBundle\Tests\Form\Handler
18
+ * @author Nikola Petkanski <[email protected] >
19
+ */
15
20
class AuthorizeFormHandlerTest extends \PHPUnit_Framework_TestCase
16
21
{
17
22
/**
@@ -57,7 +62,7 @@ public function setUp()
57
62
$ this ->instance = new AuthorizeFormHandler ($ this ->form , $ this ->request );
58
63
$ this ->instance ->setContainer ($ this ->container );
59
64
60
- parent ::setUp (); // TODO: Change the autogenerated stub
65
+ parent ::setUp ();
61
66
}
62
67
63
68
public function testConstructWillAcceptRequestObjectAsRequest ()
@@ -197,7 +202,11 @@ public function testGetCurrentRequestWillReturnRequestServiceFromContainerIfNone
197
202
$ this ->assertSame ($ randomData , $ method ->invoke ($ this ->instance ));
198
203
}
199
204
200
- public function testGettingRequestVariableWillWork ()
205
+ /**
206
+ * @group legacy
207
+ * @expectedDeprecation FOS\OAuthServerBundle\Form\Handler\AuthorizeFormHandler::$request is deprecated since 1.4 and will be removed in 2.0.
208
+ */
209
+ public function testGettingRequestVariableWillWorkButWillTriggerUserWarning ()
201
210
{
202
211
$ this ->assertSame ($ this ->request , $ this ->instance ->__get ('request ' ));
203
212
}
You can’t perform that action at this time.
0 commit comments