Skip to content

Commit

Permalink
remove cdr code from ExtService
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Nov 6, 2018
1 parent 0c74a1c commit 4a5a242
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions tests/Ws/Services/FeSunatTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,12 @@ protected function getExtSender()
->getMock();

$stub->method('call')
->will($this->returnCallback(function ($func, $params) {
->will($this->returnCallback(function () {
$zipContent = file_get_contents(__DIR__.'/../../Resources/cdrBaja.zip');
$obj = new \stdClass();
if ($func == 'getStatus') {
$obj->status = new \stdClass();
$obj->status->statusCode = '0';
$obj->status->content = $zipContent;
} elseif ($func == 'getStatusCdr') {
$obj->statusCdr = new \stdClass();
$obj->statusCdr->statusCode = '0';
$obj->statusCdr->statusMessage = 'ACEPTADA';
$obj->statusCdr->content = $zipContent;
}
$obj->status = new \stdClass();
$obj->status->statusCode = '0';
$obj->status->content = $zipContent;

return $obj;
}));
Expand Down

0 comments on commit 4a5a242

Please sign in to comment.