@@ -18,7 +18,7 @@ public function shouldGetBlob()
18
18
$ api = $ this ->getApiMock ();
19
19
$ api ->expects ($ this ->once ())
20
20
->method ('get ' )
21
- ->with ('projects/1/repository/files/dir%2Ffile1%2Etxt /raw ' , ['ref ' => 'abcd1234 ' ])
21
+ ->with ('projects/1/repository/files/dir%2Ffile1.txt /raw ' , ['ref ' => 'abcd1234 ' ])
22
22
->will ($ this ->returnValue ($ expectedString ))
23
23
;
24
24
@@ -35,7 +35,7 @@ public function shouldGetFile()
35
35
$ api = $ this ->getApiMock ();
36
36
$ api ->expects ($ this ->once ())
37
37
->method ('get ' )
38
- ->with ('projects/1/repository/files/dir%2Ffile1%2Etxt ' , ['ref ' => 'abcd1234 ' ])
38
+ ->with ('projects/1/repository/files/dir%2Ffile1.txt ' , ['ref ' => 'abcd1234 ' ])
39
39
->will ($ this ->returnValue ($ expectedArray ))
40
40
;
41
41
@@ -52,7 +52,7 @@ public function shouldCreateFile()
52
52
$ api = $ this ->getApiMock ();
53
53
$ api ->expects ($ this ->once ())
54
54
->method ('post ' )
55
- ->with ('projects/1/repository/files/dir%2Ffile1%2Etxt ' , [
55
+ ->with ('projects/1/repository/files/dir%2Ffile1.txt ' , [
56
56
'file_path ' => 'dir/file1.txt ' ,
57
57
'branch ' => 'master ' ,
58
58
'content ' => 'some contents ' ,
@@ -79,7 +79,7 @@ public function shouldCreateFileWithEncoding()
79
79
$ api = $ this ->getApiMock ();
80
80
$ api ->expects ($ this ->once ())
81
81
->method ('post ' )
82
- ->with ('projects/1/repository/files/dir%2Ffile1%2Etxt ' , [
82
+ ->with ('projects/1/repository/files/dir%2Ffile1.txt ' , [
83
83
'file_path ' => 'dir/file1.txt ' ,
84
84
'branch ' => 'master ' ,
85
85
'encoding ' => 'text ' ,
@@ -108,7 +108,7 @@ public function shouldCreateFileWithAuthor()
108
108
$ api = $ this ->getApiMock ();
109
109
$ api ->expects ($ this ->once ())
110
110
->method ('post ' )
111
- ->with ('projects/1/repository/files/dir%2Ffile1%2Etxt ' , [
111
+ ->with ('projects/1/repository/files/dir%2Ffile1.txt ' , [
112
112
'file_path ' => 'dir/file1.txt ' ,
113
113
'branch ' => 'master ' ,
114
114
'content ' => 'some contents ' ,
@@ -139,7 +139,7 @@ public function shouldUpdateFile()
139
139
$ api = $ this ->getApiMock ();
140
140
$ api ->expects ($ this ->once ())
141
141
->method ('put ' )
142
- ->with ('projects/1/repository/files/dir%2Ffile1%2Etxt ' , [
142
+ ->with ('projects/1/repository/files/dir%2Ffile1.txt ' , [
143
143
'file_path ' => 'dir/file1.txt ' ,
144
144
'branch ' => 'master ' ,
145
145
'content ' => 'some new contents ' ,
@@ -166,7 +166,7 @@ public function shouldUpdateFileWithEncoding()
166
166
$ api = $ this ->getApiMock ();
167
167
$ api ->expects ($ this ->once ())
168
168
->method ('put ' )
169
- ->with ('projects/1/repository/files/dir%2Ffile1%2Etxt ' , [
169
+ ->with ('projects/1/repository/files/dir%2Ffile1.txt ' , [
170
170
'file_path ' => 'dir/file1.txt ' ,
171
171
'branch ' => 'master ' ,
172
172
'encoding ' => 'base64 ' ,
@@ -195,7 +195,7 @@ public function shouldUpdateFileWithAuthor()
195
195
$ api = $ this ->getApiMock ();
196
196
$ api ->expects ($ this ->once ())
197
197
->method ('put ' )
198
- ->with ('projects/1/repository/files/dir%2Ffile1%2Etxt ' , [
198
+ ->with ('projects/1/repository/files/dir%2Ffile1.txt ' , [
199
199
'file_path ' => 'dir/file1.txt ' ,
200
200
'branch ' => 'master ' ,
201
201
'content ' => 'some new contents ' ,
@@ -226,7 +226,7 @@ public function shouldDeleteFile()
226
226
$ api = $ this ->getApiMock ();
227
227
$ api ->expects ($ this ->once ())
228
228
->method ('delete ' )
229
- ->with ('projects/1/repository/files/dir%2Ffile1%2Etxt ' , [
229
+ ->with ('projects/1/repository/files/dir%2Ffile1.txt ' , [
230
230
'file_path ' => 'dir/file1.txt ' ,
231
231
'branch ' => 'master ' ,
232
232
'commit_message ' => 'Deleted file ' ,
@@ -251,7 +251,7 @@ public function shouldDeleteFileWithAuthor()
251
251
$ api = $ this ->getApiMock ();
252
252
$ api ->expects ($ this ->once ())
253
253
->method ('delete ' )
254
- ->with ('projects/1/repository/files/dir%2Ffile1%2Etxt ' , [
254
+ ->with ('projects/1/repository/files/dir%2Ffile1.txt ' , [
255
255
'file_path ' => 'dir/file1.txt ' ,
256
256
'branch ' => 'master ' ,
257
257
'commit_message ' => 'Deleted file ' ,
0 commit comments