Ejemplo n.º 1
0
 /**
  * @return OptionServiceInterface|Mockery\Mock
  */
 public function getOptionService()
 {
     $option = $this->dummyData->getOption();
     $service = $this->getMockeryMock(OptionServiceInterface::class);
     $service->shouldReceive('findOneById')->andReturn($option);
     $service->shouldReceive('getAllOptions')->andReturn([$option]);
     $service->shouldReceive('getOptionValueById')->andReturn($this->dummyData->getOptionValue());
     $service->shouldReceive('getOptionProductById')->andReturn($this->dummyData->getOptionProduct());
     return $service;
 }