/**
* @param array $expected
* @param array $snapshot
* @param \Closure $callback
*
* @dataProvider dataGetDeletedDocuments
*/
public function testGetDeletedDocuments($expected, $snapshot, \Closure $callback)
{
$collection = new PersistentCollection(new ArrayCollection(), $this->getMockDocumentManager(), $this->getMockUnitOfWork());
foreach ($snapshot as $item) {
$collection->add($item);
}
$collection->takeSnapshot();
$callback($collection);
$this->assertSame($expected, $collection->getDeletedDocuments());
}