Example #1
0
 /** @test */
 public function createBoard()
 {
     $response = $this->createSuccessApiResponse();
     $error = $this->createErrorApiResponse();
     $this->mock->shouldReceive('exec')->once()->andReturn($response);
     $this->mock->shouldReceive('exec')->once()->andReturn($error);
     $this->assertTrue($this->provider->create('test', 'test'));
     $this->assertFalse($this->provider->delete('test', 'test'));
 }
 /** @test */
 public function it_should_delete_board()
 {
     $this->apiShouldReturnSuccess()->assertTrue($this->provider->delete(1111));
     $this->apiShouldReturnError()->assertFalse($this->provider->delete(1111));
 }