/** @test */ public function deleteCommentFromPin() { $response = $this->createApiResponse(); $error = $this->createErrorApiResponse(); $this->mock->shouldReceive('exec')->once()->andReturn($response); $this->mock->shouldReceive('exec')->once()->andReturn($error); $this->assertTrue($this->provider->deleteComment(1111, 1111)); $this->assertFalse($this->provider->deleteComment(1111, 1111)); }
public function testDeleteComment() { $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->assertTrue($this->provider->deleteComment(1111, 1111)); $this->assertFalse($this->provider->deleteComment(1111, 1111)); }