@@ -85,6 +85,42 @@ public function afterUploads()
85
85
$ this ->assertEquals ('jippikaijea ' , $ ret );
86
86
}
87
87
88
+ /**
89
+ * @test
90
+ */
91
+ public function copies ()
92
+ {
93
+ $ file = File::create ();
94
+ $ folder = Folder::create ();
95
+
96
+ $ this ->repo ->copy ($ file , $ folder )->shouldBeCalled ()->willReturn ('jippikaijea ' );
97
+ $ ret = $ this ->filelib ->getFileRepository ()->copy ($ file , $ folder );
98
+ $ this ->assertEquals ('jippikaijea ' , $ ret );
99
+ }
100
+
101
+
102
+ /**
103
+ * @test
104
+ */
105
+ public function deletes ()
106
+ {
107
+ $ file = File::create ();
108
+
109
+ $ this ->repo ->delete ($ file )->shouldBeCalled ()->willReturn ('jippikaijea ' );
110
+ $ ret = $ this ->filelib ->getFileRepository ()->delete ($ file );
111
+ $ this ->assertEquals ('jippikaijea ' , $ ret );
112
+ }
113
+
114
+ /**
115
+ * @test
116
+ */
117
+ public function updates ()
118
+ {
119
+ $ file = File::create ();
120
+ $ this ->repo ->update ($ file )->shouldBeCalled ()->willReturn ('jippikaijea ' );
121
+ $ ret = $ this ->filelib ->getFileRepository ()->update ($ file );
122
+ $ this ->assertEquals ('jippikaijea ' , $ ret );
123
+ }
88
124
89
125
/**
90
126
* @test
@@ -111,10 +147,6 @@ public function setsStrategy()
111
147
'xooxer ' ,
112
148
$ this ->filelib ->getFileRepository ()->getExecutionStrategy (FileRepository::COMMAND_AFTERUPLOAD )
113
149
);
114
-
115
-
116
-
117
-
118
150
}
119
151
120
152
/**
@@ -198,31 +230,6 @@ public function findByUuidDelegates()
198
230
$ this ->assertEquals ($ expected , $ ret );
199
231
}
200
232
201
- /**
202
- * @test
203
- */
204
- public function updateDelegates ()
205
- {
206
- $ param = File::create ();
207
- $ expected = 'tus ' ;
208
-
209
- $ this ->repo ->update ($ param )->shouldBeCalled ()->willReturn ($ expected );
210
- $ ret = $ this ->filelib ->getFileRepository ()->update ($ param );
211
- $ this ->assertEquals ($ expected , $ ret );
212
- }
213
-
214
- /**
215
- * @test
216
- */
217
- public function deleteDelegates ()
218
- {
219
- $ param = File::create ();
220
- $ expected = 'tus ' ;
221
-
222
- $ this ->repo ->delete ($ param )->shouldBeCalled ()->willReturn ($ expected );
223
- $ ret = $ this ->filelib ->getFileRepository ()->delete ($ param );
224
- $ this ->assertEquals ($ expected , $ ret );
225
- }
226
233
227
234
/**
228
235
* @test
@@ -249,18 +256,4 @@ public function findByFilenameDelegates()
249
256
$ ret = $ this ->filelib ->getFileRepository ()->findByFilename ($ param1 , $ param2 );
250
257
$ this ->assertEquals ($ expected , $ ret );
251
258
}
252
-
253
- /**
254
- * @test
255
- */
256
- public function copyDelegates ()
257
- {
258
- $ param1 = File::create ();
259
- $ param2 = Folder::create ();
260
- $ expected = 'tus ' ;
261
-
262
- $ this ->repo ->copy ($ param1 , $ param2 )->shouldBeCalled ()->willReturn ($ expected );
263
- $ ret = $ this ->filelib ->getFileRepository ()->copy ($ param1 , $ param2 );
264
- $ this ->assertEquals ($ expected , $ ret );
265
- }
266
- }
259
+ }
0 commit comments