@@ -24,21 +24,22 @@ public function testStatusAction() {
24
24
public function testHandleRequestGet () {
25
25
$ client = static ::createClient ();
26
26
27
- /*
28
- * Using the same auth key and version like the ones in the dist parameter file
29
- */
30
- $ client ->request ('GET ' , '/authKey/v1 ' );
27
+ $ authorizationKey = $ client ->getContainer ()->getParameter ('auth_key ' );
28
+ $ apiVersion = $ client ->getContainer ()->getParameter ('version ' );
29
+ $ client ->request ('GET ' , "/ {$ authorizationKey }/ {$ apiVersion }/ " );
31
30
32
31
$ this ->assertEquals ($ client ->getResponse ()->getStatusCode (), 405 );
33
32
}
34
33
35
34
public function testHandleRequestCompile () {
36
35
$ client = static ::createClient ();
37
36
37
+ $ authorizationKey = $ client ->getContainer ()->getParameter ('auth_key ' );
38
+ $ apiVersion = $ client ->getContainer ()->getParameter ('version ' );
38
39
$ client
39
40
->request (
40
41
'POST ' ,
41
- ' authenticationekey/version ' ,
42
+ " / { $ authorizationKey } / { $ apiVersion } / " ,
42
43
$ parameters = array (),
43
44
$ files = array (),
44
45
$ server = array (),
@@ -54,10 +55,12 @@ public function testHandleRequestCompile() {
54
55
public function testHandleRequestLibraryFetching () {
55
56
$ client = static ::createClient ();
56
57
58
+ $ authorizationKey = $ client ->getContainer ()->getParameter ('auth_key ' );
59
+ $ apiVersion = $ client ->getContainer ()->getParameter ('version ' );
57
60
$ client
58
61
->request (
59
62
'POST ' ,
60
- ' authenticationekey/version ' ,
63
+ " / { $ authorizationKey } / { $ apiVersion } / " ,
61
64
$ parameters = array (),
62
65
$ files = array (),
63
66
$ server = array (),
@@ -74,10 +77,12 @@ public function testHandleRequestLibraryFetching() {
74
77
public function testHandleRequestLibraryKeywords () {
75
78
$ client = static ::createClient ();
76
79
80
+ $ authorizationKey = $ client ->getContainer ()->getParameter ('auth_key ' );
81
+ $ apiVersion = $ client ->getContainer ()->getParameter ('version ' );
77
82
$ client
78
83
->request (
79
84
'POST ' ,
80
- ' authenticationekey/version ' ,
85
+ " / { $ authorizationKey } / { $ apiVersion } / " ,
81
86
$ parameters = array (),
82
87
$ files = array (),
83
88
$ server = array (),
0 commit comments