Пример #1
0
 /**
  * Test setting a query builder.
  *
  * @return void
  */
 public function testSetQueryBuilder()
 {
     $qb = new QueryBuilder();
     $back = new Backend($this->getConnectorMock());
     $back->setQueryBuilder($qb);
     $this->assertEquals($qb, $back->getQueryBuilder());
 }
Пример #2
0
 /**
  * Create the Summon 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;
 }