Beispiel #1
0
 /**
  * Create the EIT backend.
  *
  * @param Connector $connector Connector
  *
  * @return Backend
  */
 protected function createBackend(Connector $connector)
 {
     $backend = new Backend($connector, $this->createRecordCollectionFactory());
     $backend->setLogger($this->logger);
     $backend->setQueryBuilder($this->createQueryBuilder());
     return $backend;
 }
Beispiel #2
0
 /**
  * Test setting a query builder.
  *
  * @return void
  */
 public function testSetQueryBuilder()
 {
     $qb = new QueryBuilder();
     $back = new Backend($this->getConnectorMock(), $this->getRCFactory());
     $back->setQueryBuilder($qb);
     $this->assertEquals($qb, $back->getQueryBuilder());
 }