unLike() public method

Removes your like from pin with current ID.
public unLike ( string $pinId ) : boolean
$pinId string
return boolean
Exemplo n.º 1
0
 /** @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));
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 /** @test */
 public function it_should_unlike_pins()
 {
     $this->apiShouldReturnSuccess()->assertTrue($this->provider->unLike(1111));
     $this->apiShouldReturnError()->assertFalse($this->provider->unLike(1111));
 }