|
31 | 31 | '.tag' => 'file', |
32 | 32 | ]); |
33 | 33 |
|
34 | | - $this->dropboxAdapter->write('something', 'contents', new Config()); |
| 34 | + $this->dropboxAdapter->write('something', 'contents', new Config); |
35 | 35 | $this->addToAssertionCount(1); |
36 | 36 | }); |
37 | 37 |
|
|
42 | 42 | '.tag' => 'file', |
43 | 43 | ]); |
44 | 44 |
|
45 | | - $this->dropboxAdapter->writeStream('something', tmpfile(), new Config()); |
| 45 | + $this->dropboxAdapter->writeStream('something', tmpfile(), new Config); |
46 | 46 | $this->addToAssertionCount(1); |
47 | 47 | }); |
48 | 48 |
|
|
130 | 130 | 'path_display' => '/prefix/pass/please', |
131 | 131 | ]); |
132 | 132 |
|
133 | | - $this->dropboxAdapter->createDirectory('fail/please', new Config()); |
| 133 | + $this->dropboxAdapter->createDirectory('fail/please', new Config); |
134 | 134 |
|
135 | | - $this->dropboxAdapter->createDirectory('pass/please', new Config()); |
| 135 | + $this->dropboxAdapter->createDirectory('pass/please', new Config); |
136 | 136 | $this->addToAssertionCount(1); |
137 | 137 | })->throws(UnableToCreateDirectory::class); |
138 | 138 |
|
|
168 | 168 | it('can move a file', function () { |
169 | 169 | $this->client->move(Argument::type('string'), Argument::type('string'))->willReturn(['.tag' => 'file', 'path' => 'something']); |
170 | 170 |
|
171 | | - $this->dropboxAdapter->move('something', 'something', new Config()); |
| 171 | + $this->dropboxAdapter->move('something', 'something', new Config); |
172 | 172 | $this->addToAssertionCount(1); |
173 | 173 | }); |
174 | 174 |
|
175 | 175 | it('can handle a failing move', function () { |
176 | 176 | $this->client->move('/prefix/something', '/prefix/something')->willThrow(new BadRequest(new Response(409))); |
177 | 177 |
|
178 | | - $this->dropboxAdapter->move('something', 'something', new Config()); |
| 178 | + $this->dropboxAdapter->move('something', 'something', new Config); |
179 | 179 | })->throws(UnableToMoveFile::class); |
180 | 180 |
|
181 | 181 | it('can copy', function () { |
|
184 | 184 | Argument::type('string') |
185 | 185 | )->willReturn(['.tag' => 'file', 'path' => 'something']); |
186 | 186 |
|
187 | | - $this->dropboxAdapter->copy('something', 'something', new Config()); |
| 187 | + $this->dropboxAdapter->copy('something', 'something', new Config); |
188 | 188 | $this->addToAssertionCount(1); |
189 | 189 | }); |
190 | 190 |
|
191 | 191 | it('can handle a failing copy', function () { |
192 | 192 | $this->client->copy(Argument::any(), Argument::any())->willThrow(new BadRequest(new Response(409))); |
193 | 193 |
|
194 | | - $this->dropboxAdapter->copy('something', 'something', new Config()); |
| 194 | + $this->dropboxAdapter->copy('something', 'something', new Config); |
195 | 195 | })->throws(UnableToCopyFile::class); |
196 | 196 |
|
197 | 197 | test('getClient') |
|
0 commit comments