Esempio n. 1
0
 /** @test */
 public function followUser()
 {
     $response = $this->createSuccessApiResponse();
     $this->mock->shouldReceive('followMethodCall')->andReturn($response);
     $this->assertTrue($this->provider->follow(1));
     $this->assertTrue($this->provider->follow(1));
 }
Esempio n. 2
0
 public function testFollow()
 {
     $response = $this->createSuccessApiResponse();
     $this->mock->method('exec')->willReturn($response);
     $this->assertTrue($this->provider->follow(1));
     $this->assertTrue($this->provider->follow(1));
 }
 /** @test */
 public function it_should_follow_user()
 {
     $pinnerId = 1;
     $this->apiShouldFollowTo($pinnerId, UrlBuilder::RESOURCE_FOLLOW_USER)->assertTrue($this->provider->follow($pinnerId));
     $this->apiShouldNotFollow($pinnerId, UrlBuilder::RESOURCE_FOLLOW_USER)->assertFalse($this->provider->follow($pinnerId));
 }