コード例 #1
0
 /**
  * Test the in method when the received location is not found.
  */
 public function testInLocationNotFound()
 {
     $locationId = 'id-test';
     $locationSearchIds = ['id-search1', 'id-search2'];
     $this->locationRepository->expects($this->once())->method('findOneBy')->with(['id' => $locationId])->will($this->returnValue(null));
     $this->setExpectedException('Doctrine\\ORM\\EntityNotFoundException');
     $this->locationServiceProviderAdapter->in($locationId, $locationSearchIds);
 }