/** @test */ public function unlikeAPin() { $response = $this->createApiResponse(); $error = $this->createErrorApiResponse(); $this->mock->shouldReceive('exec')->once()->andReturn($response); $this->mock->shouldReceive('exec')->once()->andReturn($error); $this->setProperty('request', $this->mock); $this->assertTrue($this->provider->unLike(1111)); $this->assertFalse($this->provider->unLike(1111)); }
public function testUnlike() { $response = $this->createApiResponse(); $error = $this->createErrorApiResponse(); $this->mock->expects($this->at(1))->method('exec')->willReturn($response); $this->mock->expects($this->at(3))->method('exec')->willReturn($error); $this->setProperty('request', $this->mock); $this->assertTrue($this->provider->unLike(1111)); $this->assertFalse($this->provider->unLike(1111)); }
/** @test */ public function it_should_unlike_pins() { $this->apiShouldReturnSuccess()->assertTrue($this->provider->unLike(1111)); $this->apiShouldReturnError()->assertFalse($this->provider->unLike(1111)); }