@@ -57,6 +57,7 @@ public function testWillBatchSameEntityOperationsInSingleBatch(): void
5757 );
5858
5959 self ::assertCount (1 , $ batches );
60+ self ::assertSame (EntityA::class, $ batches [0 ]->class ->name );
6061 self ::assertCount (3 , $ batches [0 ]->entities );
6162 }
6263
@@ -75,8 +76,11 @@ public function testWillBatchInterleavedEntityOperationsInGroups(): void
7576 );
7677
7778 self ::assertCount (3 , $ batches );
79+ self ::assertSame (EntityA::class, $ batches [0 ]->class ->name );
7880 self ::assertCount (2 , $ batches [0 ]->entities );
81+ self ::assertSame (EntityB::class, $ batches [1 ]->class ->name );
7982 self ::assertCount (2 , $ batches [1 ]->entities );
83+ self ::assertSame (EntityA::class, $ batches [2 ]->class ->name );
8084 self ::assertCount (2 , $ batches [2 ]->entities );
8185 }
8286
@@ -92,8 +96,11 @@ public function testWillNotBatchOperationsForAGeneratedIdentifierEntity(): void
9296 );
9397
9498 self ::assertCount (3 , $ batches );
99+ self ::assertSame (EntityC::class, $ batches [0 ]->class ->name );
95100 self ::assertCount (1 , $ batches [0 ]->entities );
101+ self ::assertSame (EntityC::class, $ batches [1 ]->class ->name );
96102 self ::assertCount (1 , $ batches [1 ]->entities );
103+ self ::assertSame (EntityC::class, $ batches [2 ]->class ->name );
97104 self ::assertCount (1 , $ batches [2 ]->entities );
98105 }
99106}
0 commit comments