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)); }
/** @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)); }