Skip to content

Commit

Permalink
update spec for TRACENO
Browse files Browse the repository at this point in the history
  • Loading branch information
alibo committed Aug 25, 2015
1 parent 10677fd commit 23b4832
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/Nikapps/NikPay/PaymentProviders/Saman/SamanSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function it_should_handle_callback_and_generate_result($soap, $samanConfi
'State' => 'OK',
'RefNum' => 'ref-123-123',
'ResNum' => 'inv-123-123',
'TraceNo' => 'trace-123-123'
'TRACENO' => 'trace-123-123'
];

$params = [
Expand Down Expand Up @@ -192,7 +192,7 @@ public function it_should_throw_an_exception_when_post_data_is_invalid()
'invalid_state_key' => 'OK',
'RefNum' => 'ref-123-123',
'ResNum' => 'inv-123-123',
'TraceNo' => 'trace-123-123'
'TRACENO' => 'trace-123-123'
];

$this->shouldThrow('\Nikapps\NikPay\Exceptions\InvalidPostDataException')
Expand All @@ -205,7 +205,7 @@ public function it_should_throw_an_exception_when_state_is_not_ok()
'State' => 'Canceled By User',
'RefNum' => 'ref-123-123',
'ResNum' => 'inv-123-123',
'TraceNo' => 'trace-123-123'
'TRACENO' => 'trace-123-123'
];

$this->shouldThrow((new FailedPaymentException)->setState('Canceled By User'))
Expand All @@ -226,7 +226,7 @@ public function it_should_throw_an_exception_when_amount_is_not_equal(
'State' => 'OK',
'RefNum' => 'ref-123-123',
'ResNum' => 'inv-123-123',
'TraceNo' => 'trace-123-123'
'TRACENO' => 'trace-123-123'
];

$params = [
Expand Down Expand Up @@ -259,7 +259,7 @@ public function it_should_throw_an_exception_when_reference_already_exists(
'State' => 'OK',
'RefNum' => 'ref-123-123',
'ResNum' => 'inv-123-123',
'TraceNo' => 'trace-123-123'
'TRACENO' => 'trace-123-123'
];

$invoiceVerifier->verifyReference('ref-123-123')->willReturn(false);
Expand Down

0 comments on commit 23b4832

Please sign in to comment.