private function createHandledEvent(Query $query, ConditionInterface $condition = null) { $event = new QueryTranslatorEvent($this->object->context, $query, $condition); $event->markAsHandled(); return $event; }
public function testMarkingAsHandledMeansStopPropagation() { $this->object->markAsHandled(); $this->assertTrue($this->object->isHandled()); $this->assertTrue($this->object->isPropagationStopped()); }