Beispiel #1
0
 public function testDeletePin()
 {
     $response = $this->createApiResponse();
     $this->mock->expects($this->at(1))->method('exec')->willReturn($response);
     $this->assertNotFalse($this->provider->delete(1));
     $this->assertFalse($this->provider->delete(1));
 }
Beispiel #2
0
 /** @test */
 public function deletePin()
 {
     $response = $this->createApiResponse();
     $this->mock->shouldReceive('exec')->once()->andReturn($response);
     $this->mock->shouldReceive('exec')->once()->andReturnNull();
     $this->assertNotFalse($this->provider->delete(1));
     $this->assertFalse($this->provider->delete(1));
 }
 /** @test */
 public function it_should_delete_pin()
 {
     $this->apiShouldReturnSuccess()->assertTrue($this->provider->delete(1));
     $this->apiShouldReturnError()->assertFalse($this->provider->delete(1));
 }