Example #1
0
 public function testGetIdMethodReturnTransactionId()
 {
     // Mock actions
     $this->connection->shouldReceive('createErrors')->once()->andReturn($this->errors);
     $this->request->shouldReceive('setResponse')->once()->andReturn($this->request);
     // Test start here
     $this->responseArray['id'] = $this->id;
     $response = new Response($this->connection, $this->request, $this->responseArray, $this->id);
     $id = $response->getId();
     $this->assertEquals($this->id, $id);
 }