Ejemplo n.º 1
0
 /**
  */
 public function testExist()
 {
     $id = 1;
     $exist = true;
     $this->repository->exist($id)->willReturn($exist)->shouldBeCalledTimes(1);
     $this->assertSame($exist, $this->manager->exist($id));
 }
 /**
  */
 public function testExist()
 {
     $id = 1;
     $this->fertilizerObjectManager->exist($id)->willReturn(true)->shouldBeCalledTimes(1);
     $this->assertTrue($this->handler->exist($id));
 }