/** * {@inheritdoc} */ public function isDirty() { return $this->collection->isDirty(); }
public function testRemoveIsForwarded() { $collection = $this->getMockCollection(); $collection->expects($this->once())->method('remove')->willReturn(2); $pcoll = new PersistentCollection($collection, $this->getMockDocumentManager(), $this->getMockUnitOfWork()); $pcoll->remove(0); $this->assertTrue($pcoll->isDirty()); }