Skip to content

Commit

Permalink
back to 100% coverage on Client
Browse files Browse the repository at this point in the history
  • Loading branch information
DerMika committed Mar 30, 2016
1 parent 32d93a9 commit be654c3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/Amadeus/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,29 @@ public function testCanCreateClientWithOverriddenSessionHandlerRequestCreatorAnd
$this->assertInstanceOf('Amadeus\Client', $client);
}

public function testCanCreateClientWithAuthOptionsAndSessionParams()
{
$par = new Params([
'authParams' => [
'officeId' => 'BRUXXXXXX',
'originatorTypeCode' => 'U',
'userId' => 'WSXXXXXX',
'passwordData' => base64_encode('TEST')
],
'sessionHandlerParams' => [
'wsdl' => $this->makePathToDummyWSDL(),
'stateful' => true,
'logger' => new NullLogger()
],
'requestCreatorParams' => [
'receivedFrom' => 'some RF string'
]
]);

$client = new Client($par);

$this->assertTrue($client->isStateful());
}

/**
* @dataProvider dataProviderMakeMessageOptions
Expand Down

0 comments on commit be654c3

Please sign in to comment.