/** * Clear aggregate roots recorded events */ public function clearChanges() { $this->aggregateRoot->clearRecordedEvents(); }
public function testClearRootsRecordedEvents() { $this->root->expects($this->once())->method('clearRecordedEvents'); $this->aggregate->clearChanges(); }