@@ -14,7 +14,7 @@ public function shouldGetAllAuthorizations()
1414 $ api = $ this ->getApiMock ();
1515 $ api ->expects ($ this ->once ())
1616 ->method ('get ' )
17- ->with ('authorizations ' )
17+ ->with ('/ authorizations ' )
1818 ->will ($ this ->returnValue ($ expectedArray ));
1919
2020 $ this ->assertEquals ($ expectedArray , $ api ->all ());
@@ -31,7 +31,7 @@ public function shouldShowAuthorization()
3131 $ api = $ this ->getApiMock ();
3232 $ api ->expects ($ this ->once ())
3333 ->method ('get ' )
34- ->with ('authorizations/ ' .$ id )
34+ ->with ('/ authorizations/ ' .$ id )
3535 ->will ($ this ->returnValue ($ expectedArray ));
3636
3737 $ this ->assertEquals ($ expectedArray , $ api ->show ($ id ));
@@ -49,7 +49,7 @@ public function shouldAuthorization()
4949 $ api = $ this ->getApiMock ();
5050 $ api ->expects ($ this ->once ())
5151 ->method ('post ' )
52- ->with ('authorizations ' , $ input );
52+ ->with ('/ authorizations ' , $ input );
5353
5454 $ api ->create ($ input );
5555 }
@@ -67,7 +67,7 @@ public function shouldUpdateAuthorization()
6767 $ api = $ this ->getApiMock ();
6868 $ api ->expects ($ this ->once ())
6969 ->method ('patch ' )
70- ->with ('authorizations/ ' .$ id , $ input );
70+ ->with ('/ authorizations/ ' .$ id , $ input );
7171
7272 $ api ->update ($ id , $ input );
7373 }
@@ -81,7 +81,7 @@ public function shouldDeleteAuthorization()
8181 $ api = $ this ->getApiMock ();
8282 $ api ->expects ($ this ->once ())
8383 ->method ('delete ' )
84- ->with ('authorizations/ ' .$ id );
84+ ->with ('/ authorizations/ ' .$ id );
8585
8686 $ api ->remove ($ id );
8787 }
@@ -98,7 +98,7 @@ public function shouldCheckAuthorization()
9898 $ api = $ this ->getApiMock ();
9999 $ api ->expects ($ this ->once ())
100100 ->method ('get ' )
101- ->with ('applications/ ' .$ id .'/tokens/ ' .$ token )
101+ ->with ('/ applications/ ' .$ id .'/tokens/ ' .$ token )
102102 ->will ($ this ->returnValue ($ expectedArray ));
103103
104104 $ this ->assertEquals ($ expectedArray , $ api ->check ($ id , $ token ));
@@ -115,7 +115,7 @@ public function shouldResetAuthorization()
115115 $ api = $ this ->getApiMock ();
116116 $ api ->expects ($ this ->once ())
117117 ->method ('post ' )
118- ->with ('applications/ ' .$ id .'/tokens/ ' .$ token );
118+ ->with ('/ applications/ ' .$ id .'/tokens/ ' .$ token );
119119
120120 $ api ->reset ($ id , $ token );
121121 }
@@ -131,7 +131,7 @@ public function shouldRevokeAuthorization()
131131 $ api = $ this ->getApiMock ();
132132 $ api ->expects ($ this ->once ())
133133 ->method ('delete ' )
134- ->with ('applications/ ' .$ id .'/tokens/ ' .$ token );
134+ ->with ('/ applications/ ' .$ id .'/tokens/ ' .$ token );
135135
136136 $ api ->revoke ($ id , $ token );
137137 }
@@ -146,7 +146,7 @@ public function shouldRevokeAllAuthorizations()
146146 $ api = $ this ->getApiMock ();
147147 $ api ->expects ($ this ->once ())
148148 ->method ('delete ' )
149- ->with ('applications/ ' .$ id .'/tokens ' );
149+ ->with ('/ applications/ ' .$ id .'/tokens ' );
150150
151151 $ api ->revokeAll ($ id );
152152 }
0 commit comments