info() public method

Get information of a pin by PinID.
public info ( string $pinId ) : array | boolean
$pinId string
return array | boolean
Beispiel #1
0
 public function testGetPinInfo()
 {
     $response = $this->createApiResponse();
     $this->mock->expects($this->at(0))->method('exec')->willReturn($response);
     $this->mock->expects($this->at(1))->method('exec')->willReturn([]);
     $this->assertNotNull($this->provider->info(1));
     $this->assertFalse($this->provider->info(1));
 }
Beispiel #2
0
 /** @test */
 public function getPinInfo()
 {
     $response = $this->createApiResponse();
     $this->mock->shouldReceive('exec')->once()->andReturn($response);
     $this->mock->shouldReceive('exec')->once()->andReturnNull();
     $this->assertNotNull($this->provider->info(1));
     $this->assertFalse($this->provider->info(1));
 }
 /** @test */
 public function it_should_return_pin_info()
 {
     $this->apiShouldReturnSuccess()->assertNotEmpty($this->provider->info(1));
     $this->apiShouldReturnError()->assertEmpty($this->provider->info(1));
 }