コード例 #1
0
 private function createHandledEvent(Query $query, ConditionInterface $condition = null)
 {
     $event = new QueryTranslatorEvent($this->object->context, $query, $condition);
     $event->markAsHandled();
     return $event;
 }
コード例 #2
0
 public function testMarkingAsHandledMeansStopPropagation()
 {
     $this->object->markAsHandled();
     $this->assertTrue($this->object->isHandled());
     $this->assertTrue($this->object->isPropagationStopped());
 }