public function setUp() { parent::setUp(); $factory = $this->session->getWorkspace()->getQueryManager()->getQOMFactory(); $this->sql2Queries = Sql2TestQueries::getQueries(); $this->qomQueries = QomTestQueries::getQueries($factory); try { $this->parser = new Sql2ToQomQueryConverter($factory); } catch (\PHPCR\UnsupportedRepositoryOperationException $e) { $this->markTestSkipped('Repository does not support the QOM factory'); } }
public function setUp() { parent::setUp(); if (!$this->session->getWorkspace() instanceof \Jackalope\Workspace) { $this->markTestSkipped('TODO: fix the dependency on jackalope and always use the factory'); } $this->parser = new QomToSql2QueryConverter(new Sql2Generator(new ValueConverter())); try { $this->factory = $this->session->getWorkspace()->getQueryManager()->getQOMFactory(); } catch (\PHPCR\UnsupportedRepositoryOperationException $e) { $this->markTestSkipped('Repository does not support the QOM factory'); } $this->queries = Sql2TestQueries::getQueries(); }