@@ -84,9 +84,11 @@ public function test_recycle_bin_empty()
8484
8585 $ this ->assertTrue (Deletion::query ()->count () === 0 );
8686 $ this ->assertDatabaseMissing ('entities ' , ['id ' => $ book ->id , 'type ' => 'book ' ]);
87- $ this ->assertDatabaseMissing ('entities ' , ['id ' => $ page ->id , 'type ' => 'page ' ]);
87+ $ this ->assertDatabaseMissing ('entity_container_data ' , ['entity_id ' => $ book ->id , 'entity_type ' => 'book ' ]);
8888 $ this ->assertDatabaseMissing ('entities ' , ['id ' => $ book ->pages ->first ()->id , 'type ' => 'page ' ]);
89+ $ this ->assertDatabaseMissing ('entity_page_data ' , ['page_id ' => $ book ->pages ->first ()->id ]);
8990 $ this ->assertDatabaseMissing ('entities ' , ['id ' => $ book ->chapters ->first ()->id , 'type ' => 'chapter ' ]);
91+ $ this ->assertDatabaseMissing ('entity_container_data ' , ['entity_id ' => $ book ->chapters ->first ()->id , 'entity_type ' => 'chapter ' ]);
9092
9193 $ itemCount = 2 + $ book ->pages ->count () + $ book ->chapters ->count ();
9294 $ redirectReq = $ this ->get ('/settings/recycle-bin ' );
@@ -125,8 +127,11 @@ public function test_permanent_delete()
125127 $ this ->assertTrue (Deletion::query ()->count () === 0 );
126128
127129 $ this ->assertDatabaseMissing ('entities ' , ['id ' => $ book ->id , 'type ' => 'book ' ]);
130+ $ this ->assertDatabaseMissing ('entity_container_data ' , ['entity_id ' => $ book ->id , 'entity_type ' => 'book ' ]);
128131 $ this ->assertDatabaseMissing ('entities ' , ['id ' => $ book ->pages ->first ()->id , 'type ' => 'page ' ]);
132+ $ this ->assertDatabaseMissing ('entity_page_data ' , ['page_id ' => $ book ->pages ->first ()->id ]);
129133 $ this ->assertDatabaseMissing ('entities ' , ['id ' => $ book ->chapters ->first ()->id , 'type ' => 'chapter ' ]);
134+ $ this ->assertDatabaseMissing ('entity_container_data ' , ['entity_id ' => $ book ->chapters ->first ()->id , 'entity_type ' => 'chapter ' ]);
130135
131136 $ itemCount = 1 + $ book ->pages ->count () + $ book ->chapters ->count ();
132137 $ redirectReq = $ this ->get ('/settings/recycle-bin ' );
0 commit comments