Skip to content

Commit

Permalink
Fix, use correct field;
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsparrow committed Sep 24, 2020
1 parent 0d02019 commit 0a52791
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Amadeus/Client/Struct/MiniRule/GetFromRecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ public function testCanMakeMiniRulesRequestForPNRWithSpecificPassenger()
$this->assertCount(1, $message->groupRecords);
$this->assertEquals(RecordId::REFERENCE_TYPE_RECORD_LOCATOR, $message->groupRecords[0]->recordId->referenceType);
$this->assertEquals("RECLOCNUM123", $message->groupRecords[0]->recordId->uniqueReference);
$this->assertCount(1, $message->groupRecords[0]->filteringSelections->referenceDetails);
$this->assertEquals(ReferenceDetails::REFERENCE_TYPE_PAX, $message->groupRecords[0]->filteringSelections->referenceDetails[0]->type);
$this->assertEquals(1, $message->groupRecords[0]->filteringSelections->referenceDetails[0]->value);
$this->assertCount(1, $message->groupRecords[0]->filteringSelection->referenceDetails);
$this->assertEquals(ReferenceDetails::REFERENCE_TYPE_PAX, $message->groupRecords[0]->filteringSelection->referenceDetails[0]->type);
$this->assertEquals(1, $message->groupRecords[0]->filteringSelection->referenceDetails[0]->value);
}

public function testCanMakeMiniRulesRequestForPNRWithSpecificSegment()
Expand All @@ -196,9 +196,9 @@ public function testCanMakeMiniRulesRequestForPNRWithSpecificSegment()
$this->assertCount(1, $message->groupRecords);
$this->assertEquals(RecordId::REFERENCE_TYPE_RECORD_LOCATOR, $message->groupRecords[0]->recordId->referenceType);
$this->assertEquals("RECLOCNUM123", $message->groupRecords[0]->recordId->uniqueReference);
$this->assertCount(1, $message->groupRecords[0]->filteringSelections->referenceDetails);
$this->assertEquals(ReferenceDetails::REFERENCE_TYPE_SEGMENT, $message->groupRecords[0]->filteringSelections->referenceDetails[0]->type);
$this->assertEquals(2, $message->groupRecords[0]->filteringSelections->referenceDetails[0]->value);
$this->assertCount(1, $message->groupRecords[0]->filteringSelection->referenceDetails);
$this->assertEquals(ReferenceDetails::REFERENCE_TYPE_SEGMENT, $message->groupRecords[0]->filteringSelection->referenceDetails[0]->type);
$this->assertEquals(2, $message->groupRecords[0]->filteringSelection->referenceDetails[0]->value);
}


Expand Down

0 comments on commit 0a52791

Please sign in to comment.