@@ -110,7 +110,7 @@ public function testBulkInsertNoBeforeSave()
110110 {
111111 $ this ->Articles ->removeBehavior ('Insert ' );
112112 $ this ->Articles ->addBehavior ('Itosho/EasyQuery.Insert ' , [
113- 'event ' => ['beforeSave ' => false ]
113+ 'event ' => ['beforeSave ' => false ],
114114 ]);
115115
116116 $ records = $ this ->getBaseInsertRecords ();
@@ -159,7 +159,7 @@ public function testInsertOnce()
159159 $ newData = [
160160 'title ' => 'New Article ' ,
161161 'body ' => 'New Article Body ' ,
162- 'published ' => 1
162+ 'published ' => 1 ,
163163 ];
164164 $ entity = $ this ->Articles ->newEntity ($ newData );
165165
@@ -185,7 +185,7 @@ public function testInsertOnceAddTimestampBehavior()
185185 $ newData = [
186186 'title ' => 'New Article ' ,
187187 'body ' => 'New Article Body ' ,
188- 'published ' => 1
188+ 'published ' => 1 ,
189189 ];
190190 $ entity = $ this ->Articles ->newEntity ($ newData );
191191 $ now = FrozenTime::now ();
@@ -209,7 +209,7 @@ public function testInsertOnceWhenDuplicated()
209209 $ duplicatedData = [
210210 'title ' => 'First Article ' ,
211211 'body ' => 'First Article Body ' ,
212- 'published ' => 1
212+ 'published ' => 1 ,
213213 ];
214214 $ entity = $ this ->Articles ->newEntity ($ duplicatedData );
215215
@@ -233,7 +233,7 @@ public function testInsertOnceWhenIsNull()
233233 $ newData = [
234234 'title ' => 'First Article ' ,
235235 'body ' => null ,
236- 'published ' => 1
236+ 'published ' => 1 ,
237237 ];
238238 $ entity = $ this ->Articles ->newEntity ($ newData );
239239
@@ -244,7 +244,7 @@ public function testInsertOnceWhenIsNull()
244244 ->where ([
245245 'title ' => 'First Article ' ,
246246 'body IS ' => null ,
247- 'published ' => 1
247+ 'published ' => 1 ,
248248 ])
249249 ->all ();
250250
@@ -261,7 +261,7 @@ public function testInsertOnceWithConditions()
261261 $ newData = [
262262 'title ' => 'First Article ' ,
263263 'body ' => 'First Article Body ' ,
264- 'published ' => 0
264+ 'published ' => 0 ,
265265 ];
266266 $ entity = $ this ->Articles ->newEntity ($ newData );
267267
@@ -276,7 +276,7 @@ public function testInsertOnceWithConditions()
276276 ->find ()
277277 ->where ([
278278 'title ' => 'First Article ' ,
279- 'body ' => 'First Article Body '
279+ 'body ' => 'First Article Body ' ,
280280 ])
281281 ->all ();
282282
@@ -293,7 +293,7 @@ public function testInsertOnceWhenDuplicatedWithConditions()
293293 $ newData = [
294294 'title ' => 'First Article ' ,
295295 'body ' => 'First Article Body ' ,
296- 'published ' => 0
296+ 'published ' => 0 ,
297297 ];
298298 $ entity = $ this ->Articles ->newEntity ($ newData );
299299
@@ -323,18 +323,18 @@ private function getBaseInsertRecords()
323323 [
324324 'title ' => 'Fourth Article ' ,
325325 'body ' => 'Fourth Article Body ' ,
326- 'published ' => 1
326+ 'published ' => 1 ,
327327 ],
328328 [
329329 'title ' => 'Fifth Article ' ,
330330 'body ' => 'Fifth Article Body ' ,
331- 'published ' => 1
331+ 'published ' => 1 ,
332332 ],
333333 [
334334 'title ' => 'Sixth Article ' ,
335335 'body ' => 'Sixth Article Body ' ,
336- 'published ' => 1
337- ]
336+ 'published ' => 1 ,
337+ ],
338338 ];
339339 }
340340}
0 commit comments