/**
  * @testdox findAll() respects given restrictions
  */
 public function testFindAllRestricted()
 {
     $this->dataMapper->expects($this->once())->method('findAll');
     $this->collectionFinder->expects($this->once())->method('with')->with('key', Operator::EQUAL, 'value');
     $this->repo->restrictTo('key', Operator::EQUAL, 'value');
     /** @noinspection PhpUnusedLocalVariableInspection */
     $article = $this->repo->findAll()->getItems();
 }
 /**
  * @expectedException \Joomla\ORM\Exception\InvalidOperatorException
  */
 public function testThrowsExceptionOnIllegalOperator()
 {
     /** @noinspection PhpUnusedLocalVariableInspection */
     $result = $this->repo->findAll()->columns(['id', 'title'])->with('id', 'NONEXISTANT', '1')->getItems();
 }
 /**
  * Update the internal mapping
  *
  * @return  void
  */
 private function updateMap()
 {
     $this->map = $this->mapRepository->findAll()->columns($this->relation->colJoinName())->getItems();
 }