コード例 #1
0
ファイル: PinnersTest.php プロジェクト: dave-ac/vSimpleMVC
 /** @test */
 public function unFollowUser()
 {
     $response = $this->createSuccessApiResponse();
     $this->mock->shouldReceive('followMethodCall')->andReturn($response);
     $this->assertTrue($this->provider->unfollow(1));
     $this->assertTrue($this->provider->unfollow(1));
 }
コード例 #2
0
 public function testUnFollow()
 {
     $response = $this->createSuccessApiResponse();
     $this->mock->method('exec')->willReturn($response);
     $this->assertTrue($this->provider->unfollow(1));
     $this->assertTrue($this->provider->unfollow(1));
 }