Пример #1
0
 /**
  * @test
  */
 public function findAllCreatesQueryAndReturnsResultOfExecuteCall()
 {
     $expectedResult = $this->getMock('Tx_Extbase_Persistence_QueryResultInterface');
     $this->mockQuery->expects($this->once())->method('execute')->with()->will($this->returnValue($expectedResult));
     $this->assertSame($expectedResult, $this->repository->findAll());
 }