Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SadeghPM committed Jul 22, 2022
1 parent 2a11a53 commit c954d98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/MellatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function test_valid_payment_request()
{
$response = $this->mellat->request(1000, '/');
$this->assertEquals($response['token'], '__SAMPLE__TOKEN__');
$this->assertContains('__SAMPLE__TOKEN__', $this->mellat->redirectScript());
$this->assertStringContainsString('__SAMPLE__TOKEN__', $this->mellat->redirectScript());
}

public function test_valid_verify_request()
Expand Down
15 changes: 12 additions & 3 deletions tests/wsdl/pgw.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="bpRefundToPANRequestV2">
<soap:operation soapAction="" style="document" />
<wsdl:input name="bpRefundToPANRequestV2">
<soap:body use="literal" />
</wsdl:input>
<wsdl:output name="bpRefundToPANRequestV2Response">
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="bpDynamicPayRequest">
<soap:operation soapAction="" style="document" />
<wsdl:input name="bpDynamicPayRequest">
Expand Down Expand Up @@ -48,12 +57,12 @@
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="bpVirtualPayRequest">
<wsdl:operation name="bpRefundRequestV2">
<soap:operation soapAction="" style="document" />
<wsdl:input name="bpVirtualPayRequest">
<wsdl:input name="bpRefundRequestV2">
<soap:body use="literal" />
</wsdl:input>
<wsdl:output name="bpVirtualPayRequestResponse">
<wsdl:output name="bpRefundRequestV2Response">
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
Expand Down

0 comments on commit c954d98

Please sign in to comment.