File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -1041,29 +1041,29 @@ public function testHasManyWithRelationScoped()
10411041 [
10421042 'label ' => $ faker ->name ,
10431043 'amount ' => 33 ,
1044- 'type ' => 'income '
1044+ 'type ' => 'income ' ,
10451045 ],
10461046 [
10471047 'label ' => $ faker ->name ,
10481048 'amount ' => 22 ,
1049- 'type ' => 'income '
1050- ]
1049+ 'type ' => 'income ' ,
1050+ ],
10511051 ],
10521052 'expenses ' => [
10531053 [
10541054 'label ' => $ faker ->name ,
10551055 'amount ' => 44 ,
1056- 'type ' => 'expense '
1056+ 'type ' => 'expense ' ,
10571057 ],
10581058 [
10591059 'label ' => $ faker ->name ,
10601060 'amount ' => 10 ,
1061- 'type ' => 'expense '
1062- ]
1061+ 'type ' => 'expense ' ,
1062+ ],
10631063 ],
10641064 ];
10651065 $ entry = $ this ->crudPanel ->create ($ inputData );
1066-
1066+
10671067 $ firstExpense = $ entry ->expenses ->first ();
10681068 $ firstIncome = $ entry ->incomes ->first ();
10691069 $ this ->assertCount (2 , $ entry ->expenses );
@@ -1076,22 +1076,22 @@ public function testHasManyWithRelationScoped()
10761076 'id ' => 2 ,
10771077 'label ' => $ faker ->name ,
10781078 'amount ' => 222 ,
1079- 'type ' => 'income '
1079+ 'type ' => 'income ' ,
10801080 ],
10811081 ];
10821082 $ inputData ['expenses ' ] = [
10831083 [
10841084 'id ' => 3 ,
10851085 'label ' => $ faker ->name ,
10861086 'amount ' => 44 ,
1087- 'type ' => 'expense '
1087+ 'type ' => 'expense ' ,
10881088 ],
10891089 [
10901090 'id ' => 4 ,
10911091 'label ' => $ faker ->name ,
10921092 'amount ' => 10 ,
1093- 'type ' => 'expense '
1094- ]
1093+ 'type ' => 'expense ' ,
1094+ ],
10951095 ];
10961096 $ this ->crudPanel ->update ($ entry ->id , $ inputData );
10971097
@@ -1100,10 +1100,10 @@ public function testHasManyWithRelationScoped()
11001100 $ this ->assertCount (2 , $ freshExpenses );
11011101 $ this ->assertCount (1 , $ freshIncomes );
11021102 $ this ->assertEquals (2 , $ freshIncomes ->first ()->id );
1103-
1103+
11041104 $ inputData ['expenses ' ] = [];
11051105 $ this ->crudPanel ->update ($ entry ->id , $ inputData );
1106-
1106+
11071107 $ freshIncomes = $ entry ->fresh ()->incomes ;
11081108 $ freshExpenses = $ entry ->fresh ()->expenses ;
11091109 $ this ->assertCount (0 , $ freshExpenses );
You can’t perform that action at this time.
0 commit comments