@@ -390,21 +390,21 @@ public function testReferenceHasOneTraversing()
390
390
$ firstUserOrders ->setOrder ('id ' );
391
391
392
392
$ this ->assertEquals ([
393
- ['id ' => '1 ' , 'company_id ' => ' 1 ' , 'description ' => 'Vinny Company Order 1 ' , 'amount ' => 50.0 ],
394
- ['id ' => '3 ' , 'company_id ' => ' 1 ' , 'description ' => 'Vinny Company Order 2 ' , 'amount ' => 15.0 ],
393
+ ['id ' => '1 ' , 'company_id ' => 1 , 'description ' => 'Vinny Company Order 1 ' , 'amount ' => 50.0 ],
394
+ ['id ' => '3 ' , 'company_id ' => 1 , 'description ' => 'Vinny Company Order 2 ' , 'amount ' => 15.0 ],
395
395
], $ firstUserOrders ->export ());
396
396
397
397
$ user ->unload ();
398
398
399
399
$ this ->assertEquals ([
400
- ['id ' => '1 ' , 'company_id ' => ' 1 ' , 'description ' => 'Vinny Company Order 1 ' , 'amount ' => 50.0 ],
401
- ['id ' => '3 ' , 'company_id ' => ' 1 ' , 'description ' => 'Vinny Company Order 2 ' , 'amount ' => 15.0 ],
400
+ ['id ' => '1 ' , 'company_id ' => 1 , 'description ' => 'Vinny Company Order 1 ' , 'amount ' => 50.0 ],
401
+ ['id ' => '3 ' , 'company_id ' => 1 , 'description ' => 'Vinny Company Order 2 ' , 'amount ' => 15.0 ],
402
402
], $ firstUserOrders ->export ());
403
403
404
404
$ this ->assertEquals ([
405
- ['id ' => '1 ' , 'company_id ' => ' 1 ' , 'description ' => 'Vinny Company Order 1 ' , 'amount ' => 50.0 ],
406
- ['id ' => '2 ' , 'company_id ' => ' 2 ' , 'description ' => 'Zoe Company Order ' , 'amount ' => 10.0 ],
407
- ['id ' => '3 ' , 'company_id ' => ' 1 ' , 'description ' => 'Vinny Company Order 2 ' , 'amount ' => 15.0 ],
405
+ ['id ' => '1 ' , 'company_id ' => 1 , 'description ' => 'Vinny Company Order 1 ' , 'amount ' => 50.0 ],
406
+ ['id ' => '2 ' , 'company_id ' => 2 , 'description ' => 'Zoe Company Order ' , 'amount ' => 10.0 ],
407
+ ['id ' => '3 ' , 'company_id ' => 1 , 'description ' => 'Vinny Company Order 2 ' , 'amount ' => 15.0 ],
408
408
], $ user ->ref ('Company ' )->ref ('Orders ' )->setOrder ('id ' )->export ());
409
409
}
410
410
@@ -464,8 +464,8 @@ public function testIdFieldReferenceOurFieldCase()
464
464
['name ' => 'Ronaldo ' ],
465
465
],
466
466
'stadium ' => [
467
- ['name ' => 'Sue bernabeu ' , 'player_id ' => ' 3 ' ],
468
- ['name ' => 'John camp ' , 'player_id ' => ' 1 ' ],
467
+ ['name ' => 'Sue bernabeu ' , 'player_id ' => 3 ],
468
+ ['name ' => 'John camp ' , 'player_id ' => 1 ],
469
469
],
470
470
]);
471
471
@@ -480,7 +480,7 @@ public function testIdFieldReferenceOurFieldCase()
480
480
$ p ->load (2 );
481
481
$ p ->ref ('Stadium ' )->import ([['name ' => 'Nou camp nou ' ]]);
482
482
$ this ->assertSame ('Nou camp nou ' , $ p ->ref ('Stadium ' )->get ('name ' ));
483
- $ this ->assertSame (' 2 ' , $ p ->ref ('Stadium ' )->get ('player_id ' ));
483
+ $ this ->assertSame (2 , $ p ->ref ('Stadium ' )->get ('player_id ' ));
484
484
}
485
485
486
486
public function testModelProperty ()
0 commit comments