コード例 #1
0
 /**
  * @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();
 }