@@ -18,7 +18,7 @@ public function testHandleRequestInvalidAuthKey() {
18
18
19
19
$ this ->setUpController ($ controller , $ container , $ request , $ apiHandler );
20
20
21
- $ container ->expects ($ this ->once ())->method ('getParameter ' )->with ('auth_key ' )->will ($ this ->returnValue ('anAuthKey ' ));
21
+ $ container ->expects ($ this ->once ())->method ('getParameter ' )->with ('authorizationKey ' )->will ($ this ->returnValue ('anAuthKey ' ));
22
22
23
23
$ actionResponse = $ controller ->handleRequestAction ('invalidAuthKey ' , 'v1 ' );
24
24
@@ -29,7 +29,7 @@ public function testHandleRequestInvalidApiVersion() {
29
29
30
30
$ this ->setUpController ($ controller , $ container , $ request , $ apiHandler );
31
31
32
- $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('auth_key ' )->will ($ this ->returnValue ('anAuthKey ' ));
32
+ $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('authorizationKey ' )->will ($ this ->returnValue ('anAuthKey ' ));
33
33
$ container ->expects ($ this ->at (1 ))->method ('getParameter ' )->with ('version ' )->will ($ this ->returnValue ('v2 ' ));
34
34
35
35
$ actionResponse = $ controller ->handleRequestAction ('anAuthKey ' , 'v1 ' );
@@ -41,7 +41,7 @@ public function testHandleRequestEmptyRequest() {
41
41
42
42
$ this ->setUpController ($ controller , $ container , $ request , $ apiHandler );
43
43
44
- $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('auth_key ' )->will ($ this ->returnValue ('anAuthKey ' ));
44
+ $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('authorizationKey ' )->will ($ this ->returnValue ('anAuthKey ' ));
45
45
$ container ->expects ($ this ->at (1 ))->method ('getParameter ' )->with ('version ' )->will ($ this ->returnValue ('v1 ' ));
46
46
47
47
$ controller ->expects ($ this ->once ())->method ('getRequest ' )->will ($ this ->returnValue ($ request ));
@@ -56,7 +56,7 @@ public function testHandleRequestInvalidJsonDecodesToFalse() {
56
56
57
57
$ this ->setUpController ($ controller , $ container , $ request , $ apiHandler );
58
58
59
- $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('auth_key ' )->will ($ this ->returnValue ('anAuthKey ' ));
59
+ $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('authorizationKey ' )->will ($ this ->returnValue ('anAuthKey ' ));
60
60
$ container ->expects ($ this ->at (1 ))->method ('getParameter ' )->with ('version ' )->will ($ this ->returnValue ('v1 ' ));
61
61
62
62
$ controller ->expects ($ this ->once ())->method ('getRequest ' )->will ($ this ->returnValue ($ request ));
@@ -71,7 +71,7 @@ public function testHandleRequestNoDataKeyInRequest() {
71
71
72
72
$ this ->setUpController ($ controller , $ container , $ request , $ apiHandler );
73
73
74
- $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('auth_key ' )->will ($ this ->returnValue ('anAuthKey ' ));
74
+ $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('authorizationKey ' )->will ($ this ->returnValue ('anAuthKey ' ));
75
75
$ container ->expects ($ this ->at (1 ))->method ('getParameter ' )->with ('version ' )->will ($ this ->returnValue ('v1 ' ));
76
76
77
77
$ controller ->expects ($ this ->once ())->method ('getRequest ' )->will ($ this ->returnValue ($ request ));
@@ -93,7 +93,7 @@ public function testHandleRequestCompileRequest() {
93
93
94
94
$ controller ->setContainer ($ container );
95
95
96
- $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('auth_key ' )->will ($ this ->returnValue ('anAuthKey ' ));
96
+ $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('authorizationKey ' )->will ($ this ->returnValue ('anAuthKey ' ));
97
97
$ container ->expects ($ this ->at (1 ))->method ('getParameter ' )->with ('version ' )->will ($ this ->returnValue ('v1 ' ));
98
98
99
99
$ controller ->expects ($ this ->once ())->method ('getRequest ' )->will ($ this ->returnValue ($ request ));
@@ -117,7 +117,7 @@ public function testHandleRequestLibraryRequest() {
117
117
118
118
$ controller ->setContainer ($ container );
119
119
120
- $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('auth_key ' )->will ($ this ->returnValue ('anAuthKey ' ));
120
+ $ container ->expects ($ this ->at (0 ))->method ('getParameter ' )->with ('authorizationKey ' )->will ($ this ->returnValue ('anAuthKey ' ));
121
121
$ container ->expects ($ this ->at (1 ))->method ('getParameter ' )->with ('version ' )->will ($ this ->returnValue ('v1 ' ));
122
122
123
123
$ controller ->expects ($ this ->once ())->method ('getRequest ' )->will ($ this ->returnValue ($ request ));
0 commit comments