@@ -1198,7 +1198,7 @@ public function testBuildMarshalMapTranslationsOff()
1198
1198
1199
1199
$ marshaller = $ table ->marshaller ();
1200
1200
$ translate = $ table ->behaviors ()->get ('Translate ' );
1201
- $ result = $ translate ->buildMarhshalMap ($ marshaller , [], ['translations ' => false ]);
1201
+ $ result = $ translate ->buildMarshalMap ($ marshaller , [], ['translations ' => false ]);
1202
1202
$ this ->assertSame ([], $ result );
1203
1203
}
1204
1204
@@ -1214,11 +1214,11 @@ public function testBuildMarshalMapTranslationsOn()
1214
1214
$ marshaller = $ table ->marshaller ();
1215
1215
$ translate = $ table ->behaviors ()->get ('Translate ' );
1216
1216
1217
- $ result = $ translate ->buildMarhshalMap ($ marshaller , [], ['translations ' => true ]);
1217
+ $ result = $ translate ->buildMarshalMap ($ marshaller , [], ['translations ' => true ]);
1218
1218
$ this ->assertArrayHasKey ('_translations ' , $ result );
1219
1219
$ this ->assertInstanceOf ('Closure ' , $ result ['_translations ' ]);
1220
1220
1221
- $ result = $ translate ->buildMarhshalMap ($ marshaller , [], []);
1221
+ $ result = $ translate ->buildMarshalMap ($ marshaller , [], []);
1222
1222
$ this ->assertArrayHasKey ('_translations ' , $ result );
1223
1223
$ this ->assertInstanceOf ('Closure ' , $ result ['_translations ' ]);
1224
1224
}
@@ -1234,7 +1234,7 @@ public function testBuildMarshalMapNonArrayData()
1234
1234
$ table ->addBehavior ('Translate ' , ['fields ' => ['title ' , 'body ' ]]);
1235
1235
$ translate = $ table ->behaviors ()->get ('Translate ' );
1236
1236
1237
- $ map = $ translate ->buildMarhshalMap ($ table ->marshaller (), [], []);
1237
+ $ map = $ translate ->buildMarshalMap ($ table ->marshaller (), [], []);
1238
1238
$ entity = $ table ->newEntity ();
1239
1239
$ result = $ map ['_translations ' ]('garbage ' , $ entity );
1240
1240
$ this ->assertNull ($ result , 'Non-array should not error out. ' );
@@ -1253,7 +1253,7 @@ public function testBuildMarshalMapBuildEntities()
1253
1253
$ table ->addBehavior ('Translate ' , ['fields ' => ['title ' , 'body ' ]]);
1254
1254
$ translate = $ table ->behaviors ()->get ('Translate ' );
1255
1255
1256
- $ map = $ translate ->buildMarhshalMap ($ table ->marshaller (), [], []);
1256
+ $ map = $ translate ->buildMarshalMap ($ table ->marshaller (), [], []);
1257
1257
$ entity = $ table ->newEntity ();
1258
1258
$ data = [
1259
1259
'en ' => [
@@ -1291,7 +1291,7 @@ public function testBuildMarshalMapBuildEntitiesValidationErrors()
1291
1291
$ translate = $ table ->behaviors ()->get ('Translate ' );
1292
1292
1293
1293
$ entity = $ table ->newEntity ();
1294
- $ map = $ translate ->buildMarhshalMap ($ table ->marshaller (), [], []);
1294
+ $ map = $ translate ->buildMarshalMap ($ table ->marshaller (), [], []);
1295
1295
$ data = [
1296
1296
'en ' => [
1297
1297
'title ' => 'English Title ' ,
@@ -1335,7 +1335,7 @@ public function testBuildMarshalMapUpdateExistingEntities()
1335
1335
'es ' => $ es ,
1336
1336
'en ' => $ en ,
1337
1337
]);
1338
- $ map = $ translate ->buildMarhshalMap ($ table ->marshaller (), [], []);
1338
+ $ map = $ translate ->buildMarshalMap ($ table ->marshaller (), [], []);
1339
1339
$ data = [
1340
1340
'en ' => [
1341
1341
'title ' => 'English Title ' ,
@@ -1380,7 +1380,7 @@ public function testBuildMarshalMapUpdateEntitiesValidationErrors()
1380
1380
'es ' => $ es ,
1381
1381
'en ' => $ en ,
1382
1382
]);
1383
- $ map = $ translate ->buildMarhshalMap ($ table ->marshaller (), [], []);
1383
+ $ map = $ translate ->buildMarshalMap ($ table ->marshaller (), [], []);
1384
1384
$ data = [
1385
1385
'en ' => [
1386
1386
'title ' => 'English Title ' ,
0 commit comments