/**
  * It should provide a Query object for a PHPCR query object.
  */
 public function testHandleCreateFromPhpcrQuery()
 {
     $locale = 'fr';
     $primarySelector = 'p';
     $this->queryCreateEvent->getInnerQuery()->willReturn($this->phpcrQuery->reveal());
     $this->queryCreateEvent->getLocale()->willReturn($locale);
     $this->queryCreateEvent->getOptions()->willReturn([]);
     $this->queryCreateEvent->getPrimarySelector()->willReturn($primarySelector);
     $this->queryManager->createQuery($this->phpcrQuery->reveal(), 'JCR-SQL2')->willReturn($this->phpcrQuery->reveal());
     $this->queryCreateEvent->setQuery(new Query($this->phpcrQuery->reveal(), $this->dispatcher->reveal(), $locale, [], $primarySelector))->shouldBeCalled();
     $this->subscriber->handleCreate($this->queryCreateEvent->reveal());
 }