Skip to content

Commit

Permalink
add tests for activatePaymentNotice
Browse files Browse the repository at this point in the history
  • Loading branch information
esposimo committed Mar 17, 2024
1 parent 21bf08c commit 4645eb6
Show file tree
Hide file tree
Showing 30 changed files with 3,109 additions and 31 deletions.
6 changes: 6 additions & 0 deletions src/clean_run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

php flush_cache.php ;
php mock_insert.php ;
php mock_crawler.php ;
./vendor/bin/phpunit -c tests/phpunit.xml --testsuite crawler
4 changes: 4 additions & 0 deletions src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
const DB_PASSWORD = 'admin';
const MEMCACHED_HOST = '172.17.0.3';
const MEMCACHED_PORT = 11211;
const TRANSACTION_TABLE = "transaction_%s";
const TRANSACTION_DETAILS_TABLE = "transaction_details_%s";
const TRANSACTION_EVENTS_TABLE = "transaction_events_%s";
const TRANSACTION_RE_TABLE = "transaction_re_%s";

/*$id = "1298084";
Expand Down
21 changes: 11 additions & 10 deletions src/mock_crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
use pagopa\crawler\Memcached;


const MEMCACHED_HOST = '172.17.0.3';

const MEMCACHED_PORT = "11211";
const DB_HOST = '172.17.0.5';
const DB_PORT = '5432';
const DB_DATABASE = 'postgres';
const DB_USERNAME = 'postgres';
const DB_PASSWORD = 'mock';


const MEMCACHED_HOST = '172.17.0.3';
const MEMCACHED_PORT = "11211";
const DB_HOST = '172.17.0.5';
const DB_PORT = '5432';
const DB_DATABASE = 'postgres';
const DB_USERNAME = 'postgres';
const DB_PASSWORD = 'mock';
const TRANSACTION_TABLE = "transaction_%s";
const TRANSACTION_DETAILS_TABLE = "transaction_details_%s";
const TRANSACTION_EVENTS_TABLE = "transaction_events_%s";
const TRANSACTION_RE_TABLE = "transaction_re_%s";

$capsule = new Capsule;

Expand Down
542 changes: 542 additions & 0 deletions src/mock_insert.php

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/src/crawler/events/resp/activatePaymentNotice.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public function __construct(array $eventData)
*/
public function getPaEmittente(int $index = 0): string|null
{
$pa = $this->getColumn('iddominio');
return (empty($pa)) ? null : $pa;
if (empty($this->getColumn('iddominio')))
{
// se la colonna iddominio è vuota, provo a recuperare dal payload
Expand All @@ -38,6 +40,8 @@ public function getPaEmittente(int $index = 0): string|null
*/
public function getIuv(int $index = 0): string|null
{
$iuv = $this->getColumn('iuv');
return (empty($iuv)) ? null : $iuv;
if (empty($this->getColumn('iuv')))
{
// se la colonna iuv è vuota, provo a recuperare dal payload visto che nella response dell'activatePaymentNotice il valore c'è (se non c'è fault)
Expand All @@ -51,6 +55,8 @@ public function getIuv(int $index = 0): string|null
*/
public function getCcp(int $index = 0): string|null
{
$ccp = $this->getColumn('ccp');
return (empty($ccp)) ? null : $ccp;
if (empty($this->getColumn('ccp')))
{
// se la colonna iddominio è vuota, provo a recuperare dal payload
Expand All @@ -72,6 +78,8 @@ public function getNoticeNumber(int $index = 0): string|null
*/
public function getCreditorReferenceId(int $index = 0): string|null
{
$iuv = $this->getColumn('creditorreferenceid');
return (empty($iuv)) ? null : $iuv;
if (empty($this->getColumn('creditorreferenceid')))
{
// se la colonna iuv è vuota, provo a recuperare dal payload visto che nella response dell'activatePaymentNotice il valore c'è (se non c'è fault)
Expand All @@ -85,6 +93,8 @@ public function getCreditorReferenceId(int $index = 0): string|null
*/
public function getPaymentToken(int $index = 0): string|null
{
$token = $this->getColumn('paymenttoken');
return (empty($token)) ? null : $token;
if (empty($this->getColumn('paymenttoken')))
{
// se la colonna iuv è vuota, provo a recuperare dal payload visto che nella response dell'activatePaymentNotice il valore c'è (se non c'è fault)
Expand Down
11 changes: 7 additions & 4 deletions src/src/crawler/paymentlist/resp/activatePaymentNotice.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public function runCreatePayment(int $index = 0): array
$last_inserted_id = DB::connection()->getPdo()->lastInsertId();



$cache_key = base64_encode(sprintf('payment_%s_%s_%s', $date_x_cache, $iuv, $pa_emittente));
$cache_value = [
'date_event' => $date_event,
Expand Down Expand Up @@ -181,24 +180,28 @@ public function runPaymentAlreadyEvaluated(int $index = 0): void
$iuv = $this->getEvent()->getIuv($index);
$pa_emittente = $this->getEvent()->getPaEmittente($index);
$date_event = $this->getEvent()->getInsertedTimestamp()->format('Y-m-d');
$date_x_cache = $this->getEvent()->getInsertedTimestamp()->format('Ymd');

$cache_key = base64_encode(sprintf('payment_%s_%s_%s', $date_event, $iuv, $pa_emittente));
$cache_key = base64_encode(sprintf('payment_%s_%s_%s', $date_x_cache, $iuv, $pa_emittente));

$cached_attempts = $this->getFromCache($cache_key);


if (!is_array($cached_attempts))
{
$cached_attempts = []; // fix per la get dalla cache
}



foreach($cached_attempts as $key => $attempt)
{
$id = $attempt['id'];
$date = $attempt['date_event'];
$transfer_added = $attempt['transfer_added'];
$amount_import = $attempt['amount_update'];

if (!$this->getEvent()->getMethodInterface()->isFaultEvent())
/*if (!$this->getEvent()->getMethodInterface()->isFaultEvent())
{
if ($amount_import === false)
{
Expand Down Expand Up @@ -226,7 +229,7 @@ public function runPaymentAlreadyEvaluated(int $index = 0): void
$attempt['transfer_added'] = true;
}
}
}
}*/

$cached_attempts[$key] = $attempt; // aggiorno la cache con le nuove info (se aggiornate) di aggiunta transfer e aggiornamento importo

Expand Down
2 changes: 1 addition & 1 deletion src/src/database/sherlock/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Transaction extends SingleRow

public function __construct(\DateTime $date, array $eventData = [])
{
$table = sprintf('transaction_%s', $date->format('Y'));
$table = sprintf(TRANSACTION_TABLE, $date->format('Y'));
parent::__construct($table, $eventData, ['id', 'date_event'], ['date_event']);

}
Expand Down
2 changes: 1 addition & 1 deletion src/src/database/sherlock/TransactionDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TransactionDetails extends SingleRow

public function __construct(\DateTime $date, array $eventData = [])
{
$table = sprintf('transaction_details_%s', $date->format('Y'));
$table = sprintf(TRANSACTION_DETAILS_TABLE, $date->format('Y'));
parent::__construct($table, $eventData, ['id', 'date_event'], ['date_event']);

}
Expand Down
2 changes: 1 addition & 1 deletion src/src/database/sherlock/TransactionRe.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TransactionRe extends SingleRow

public function __construct(\DateTime $date, $eventData = [])
{
$table = sprintf('transaction_re_%s', $date->format('Y'));
$table = sprintf(TRANSACTION_RE_TABLE, $date->format('Y'));
parent::__construct($table, $eventData, ['id', 'date_event'], ['date_event']);

}
Expand Down
2 changes: 1 addition & 1 deletion src/src/database/sherlock/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Workflow extends SingleRow

public function __construct(DateTime $date, array $eventData = [])
{
$table = sprintf('transaction_events_%s', $date->format('Y'));
$table = sprintf(TRANSACTION_EVENTS_TABLE, $date->format('Y'));
parent::__construct($table, $eventData, ['id', 'date_event'], ['date_event']);
}

Expand Down
2 changes: 1 addition & 1 deletion src/tests/.phpunit.result.cache

Large diffs are not rendered by default.

111 changes: 111 additions & 0 deletions src/tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?php

use Illuminate\Database\Capsule\Manager as Capsule;
use pagopa\database\sherlock\Transaction;
use pagopa\database\sherlock\TransactionRe;
use pagopa\database\sherlock\TransactionDetails;
use pagopa\database\sherlock\Workflow;



class GetInfoFromDb
{

protected Capsule $db;

public function __construct()
{
$capsule = new Capsule;

$capsule->addConnection([
'driver' => 'pgsql',
'host' => DB_HOST,
'port' => DB_PORT,
'database' => DB_DATABASE,
'username' => DB_USERNAME,
'password' => DB_PASSWORD,
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci'
]);

$capsule->setAsGlobal();
$capsule->bootEloquent();
}

public function getTransaction(DateTime $date, string $iuv, string $token = null) : Transaction|null
{
$y = $date->format('Y');
$table = sprintf(TRANSACTION_TABLE, $y);
$ymd = $date->format('Y-m-d');

$statement = Capsule::table($table)
->where('iuv', '=', $iuv)
->where('date_event', '=', $ymd);
if (!is_null($token))
{
$statement->where('token_ccp', '=', $token);
}
$result = $statement->get();

if (is_null($result->get(0)))
{
return null;
}

return new Transaction($date, (array) $result->get(0));
}


public function getTransactionDetails(Transaction $transaction, int $index = 0) : TransactionDetails|null
{
$date = new DateTime($transaction->getColumnValue('inserted_timestamp'));
$ymd = $date->format('Y_m_d');
$table = sprintf(TRANSACTION_DETAILS_TABLE, $ymd);

$result = Capsule::table($table)
->where('fk_payment', '=', $transaction->getColumnValue('id'))
->orderBy('amount_transfer', 'asc')
->get();

$collect = [];
foreach($result as $details)
{
$collect[] = new TransactionDetails($date, (array) $details);
}

return (array_key_exists($index, $collect)) ? $collect[$index] : null;
}

public function getWorkFlow(Transaction $transaction, int $index = 0) : Workflow|null
{
$date = new DateTime($transaction->getColumnValue('inserted_timestamp'));
$ymd = $date->format('Y_m_d');
$table = sprintf(TRANSACTION_EVENTS_TABLE, $ymd);

$result = Capsule::table($table)
->where('fk_payment', '=', $transaction->getColumnValue('id'))
->orderBy('event_timestamp', 'asc')
->get();

$collect = [];
foreach($result as $details)
{
$collect[] = new Workflow($date, (array) $details);
}

return (array_key_exists($index, $collect)) ? $collect[$index] : null;
}


public function getReEvent(Datetime $date, int $id) : TransactionRe
{
$table = sprintf(TRANSACTION_RE_TABLE,$date->format('Y_m_d'));

$result = Capsule::table($table)
->where('id', '=', $id)
->get();

return new TransactionRe($date, (array) $result->get(0));
}

}
19 changes: 16 additions & 3 deletions src/tests/mock_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@ values (22, '2024-03-10', '2024-03-10 09:24:45.232010', 'activatePaymentNotice',
'TO_LOAD','')
*/
truncate table transaction_re_2024, transaction_2024, transaction_details_2024, transaction_events_2024;
insert into transaction_re_2024 (id, date_event, inserted_timestamp, tipoevento, sottotipoevento, iddominio, iuv, ccp, noticenumber, creditorreferenceid, paymenttoken, psp, stazione, canale, sessionid, sessionidoriginal, uniqueid, payload, state, message)
Expand Down Expand Up @@ -643,4 +641,19 @@ insert into transaction_re_2024 (id, date_event, inserted_timestamp, tipoevento,
values (30, '2024-03-10', '2024-03-10 09:29:25.232010', 'activatePaymentNotice', 'RESP', '77777777777', '01000000000000018', 't0000000000000000000000000000018', '301000000000000018',
'01000000000000018', 't0000000000000000000000000000018', 'PSP_01', '77777777777_01', '88888888888_01', 'sessid_000001', '', 'T000030',
'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIiA/Pgo8c29hcGVudjpFbnZlbG9wZSB4bWxuczpjb21tb249Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQveHNkL2NvbW1vbi10eXBlcy92MS4wLjAvIiB4bWxuczpuZnA9Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQvbm9kZS9ub2RlRm9yUHNwLnhzZCIgeG1sbnM6c29hcGVudj0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbnZlbG9wZS8iIHhtbG5zOnhzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSI+Cgk8c29hcGVudjpCb2R5PgoJCTxuZnA6YWN0aXZhdGVQYXltZW50Tm90aWNlUmVzPgoJCQk8b3V0Y29tZT5PSzwvb3V0Y29tZT4KCQkJPHRvdGFsQW1vdW50PjI3MC4wMDwvdG90YWxBbW91bnQ+CgkJCTxwYXltZW50RGVzY3JpcHRpb24+RU5FTCBFTkVSR0lBL05VTURPQz00MzU1NDI1ODYzL0RBVEFET0M9MDguMDguMjAyMy9BVlZJU089MzA0MTAwNDM1NTQyNTg2Mzg5L0lNUE9SVE89MTgzLDg1LzwvcGF5bWVudERlc2NyaXB0aW9uPgoJCQk8ZmlzY2FsQ29kZVBBPjc3Nzc3Nzc3Nzc3PC9maXNjYWxDb2RlUEE+CgkJCTxjb21wYW55TmFtZT5wYWdvUEEgUy5wLkEuPC9jb21wYW55TmFtZT4KCQkJPHBheW1lbnRUb2tlbj50MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxNzwvcGF5bWVudFRva2VuPgoJCQk8dHJhbnNmZXJMaXN0PgoJCQkJPHRyYW5zZmVyPgoJCQkJCTxpZFRyYW5zZmVyPjE8L2lkVHJhbnNmZXI+CgkJCQkJPHRyYW5zZmVyQW1vdW50PjE4MC4wMDwvdHJhbnNmZXJBbW91bnQ+CgkJCQkJPGZpc2NhbENvZGVQQT43Nzc3Nzc3Nzc3OTwvZmlzY2FsQ29kZVBBPgoJCQkJCTxJQkFOPklUMThVMDAwMDAwMDAwMDAwMDAwMDAwMDAwMTwvSUJBTj4KCQkJCQk8cmVtaXR0YW5jZUluZm9ybWF0aW9uPi9SRkIvMDQxMDA0MzU1NDI1ODYzODkvVFhUL0VORUwgRU5FUkdJQS9OVU1ET0M9NDM1NTQyNTg2My9EQVRBRE9DPTA4LjA4LjIwMjMvQVZWSVNPPTMwNDEwMDQzNTU0MjU4NjM4OS9JTVBPUlRPPTE4Myw4NS88L3JlbWl0dGFuY2VJbmZvcm1hdGlvbj4KCQkJCTwvdHJhbnNmZXI+CgkJCQk8dHJhbnNmZXI+CgkJCQkJPGlkVHJhbnNmZXI+MjwvaWRUcmFuc2Zlcj4KCQkJCQk8dHJhbnNmZXJBbW91bnQ+OTAuMDA8L3RyYW5zZmVyQW1vdW50PgoJCQkJCTxmaXNjYWxDb2RlUEE+Nzc3Nzc3Nzc3Nzg8L2Zpc2NhbENvZGVQQT4KCQkJCQk8SUJBTj5JVDE4VTAwMDAwMDAwMDAwMDAwMDAwMDAwMDI8L0lCQU4+CgkJCQkJPHJlbWl0dGFuY2VJbmZvcm1hdGlvbj4vUkZCLzA0MTAwNDM1NTQyNTg2Mzg5L1RYVC9FTkVMIEVORVJHSUEvTlVNRE9DPTQzNTU0MjU4NjMvREFUQURPQz0wOC4wOC4yMDIzL0FWVklTTz0zMDQxMDA0MzU1NDI1ODYzODkvSU1QT1JUTz0xODMsODUvPC9yZW1pdHRhbmNlSW5mb3JtYXRpb24+CgkJCQk8L3RyYW5zZmVyPgoJCQk8L3RyYW5zZmVyTGlzdD4KCQkJPGNyZWRpdG9yUmVmZXJlbmNlSWQ+MDEwMDAwMDAwMDAwMDAwMTg8L2NyZWRpdG9yUmVmZXJlbmNlSWQ+CgkJPC9uZnA6YWN0aXZhdGVQYXltZW50Tm90aWNlUmVzPgoJPC9zb2FwZW52OkJvZHk+Cjwvc29hcGVudjpFbnZlbG9wZT4=',
'TO_LOAD','');
'TO_LOAD','');
*/


truncate table transaction_re_2024, transaction_2024, transaction_details_2024, transaction_events_2024;







16 changes: 8 additions & 8 deletions src/tests/pagopa/events/resp/activatePaymentNoticeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public function testGetPaEmittenti()
$this->assertEquals(['06655971007'], $this->instance_all_field->getPaEmittenti());
$this->assertEquals(['06655971007'], $this->instance_no_stazione_canale_in_evento->getPaEmittenti());
$this->assertEquals(['06655971007'], $this->instance_no_iuv_in_evento->getPaEmittenti());
$this->assertEquals(['06655971007'], $this->instance_no_dominio_in_evento->getPaEmittenti());
$this->assertNull($this->instance_no_dominio_in_evento->getPaEmittenti());
$this->assertEquals(['06655971007'], $this->instance_no_token_in_evento->getPaEmittenti());
$this->assertEquals(['06655971007'], $this->instance_no_nav_in_evento->getPaEmittenti());
$this->assertEquals(['06655971007'], $this->faultInstance->getPaEmittenti());
Expand All @@ -264,7 +264,7 @@ public function testGetIuvs()
{
$this->assertEquals(['04100435542586389'], $this->instance_all_field->getIuvs());
$this->assertEquals(['04100435542586389'], $this->instance_no_stazione_canale_in_evento->getIuvs());
$this->assertEquals(['04100435542586389'], $this->instance_no_iuv_in_evento->getIuvs());
$this->assertNull($this->instance_no_iuv_in_evento->getIuvs());
$this->assertEquals(['04100435542586389'], $this->instance_no_dominio_in_evento->getIuvs());
$this->assertEquals(['04100435542586389'], $this->instance_no_token_in_evento->getIuvs());
$this->assertEquals(['04100435542586389'], $this->instance_no_nav_in_evento->getIuvs());
Expand All @@ -278,7 +278,7 @@ public function testGetCcps()
$this->assertEquals(['0a8ef4f0194f4886942cbc8da8fdbe04'], $this->instance_no_stazione_canale_in_evento->getCCps());
$this->assertEquals(['0a8ef4f0194f4886942cbc8da8fdbe04'], $this->instance_no_iuv_in_evento->getCCps());
$this->assertEquals(['0a8ef4f0194f4886942cbc8da8fdbe04'], $this->instance_no_dominio_in_evento->getCCps());
$this->assertEquals(['0a8ef4f0194f4886942cbc8da8fdbe04'], $this->instance_no_token_in_evento->getCCps());
$this->assertNull($this->instance_no_token_in_evento->getCCps());
$this->assertEquals(['0a8ef4f0194f4886942cbc8da8fdbe04'], $this->instance_no_nav_in_evento->getCCps());
$this->assertEquals(['0a8ef4f0194f4886942cbc8da8fdbe04'], $this->faultInstance->getCCps());
}
Expand All @@ -289,7 +289,7 @@ public function testGetPaEmittente()
$this->assertEquals('06655971007', $this->instance_all_field->getPaEmittente());
$this->assertEquals('06655971007', $this->instance_no_stazione_canale_in_evento->getPaEmittente());
$this->assertEquals('06655971007', $this->instance_no_iuv_in_evento->getPaEmittente());
$this->assertEquals('06655971007', $this->instance_no_dominio_in_evento->getPaEmittente());
$this->assertNull($this->instance_no_dominio_in_evento->getPaEmittente());
$this->assertEquals('06655971007', $this->instance_no_token_in_evento->getPaEmittente());
$this->assertEquals('06655971007', $this->instance_no_nav_in_evento->getPaEmittente());
$this->assertEquals('06655971007', $this->faultInstance->getPaEmittente());
Expand All @@ -301,7 +301,7 @@ public function testGetIuv()
{
$this->assertEquals('04100435542586389', $this->instance_all_field->getIuv());
$this->assertEquals('04100435542586389', $this->instance_no_stazione_canale_in_evento->getIuv());
$this->assertEquals('04100435542586389', $this->instance_no_iuv_in_evento->getIuv());
$this->assertNull($this->instance_no_iuv_in_evento->getIuv());
$this->assertEquals('04100435542586389', $this->instance_no_dominio_in_evento->getIuv());
$this->assertEquals('04100435542586389', $this->instance_no_token_in_evento->getIuv());
$this->assertEquals('04100435542586389', $this->instance_no_nav_in_evento->getIuv());
Expand All @@ -314,7 +314,7 @@ public function testGetCreditorReferenceId()
{
$this->assertEquals('04100435542586389', $this->instance_all_field->getCreditorReferenceId());
$this->assertEquals('04100435542586389', $this->instance_no_stazione_canale_in_evento->getCreditorReferenceId());
$this->assertEquals('04100435542586389', $this->instance_no_iuv_in_evento->getCreditorReferenceId());
$this->assertNull($this->instance_no_iuv_in_evento->getCreditorReferenceId());
$this->assertEquals('04100435542586389', $this->instance_no_dominio_in_evento->getCreditorReferenceId());
$this->assertEquals('04100435542586389', $this->instance_no_token_in_evento->getCreditorReferenceId());
$this->assertEquals('04100435542586389', $this->instance_no_nav_in_evento->getCreditorReferenceId());
Expand All @@ -328,7 +328,7 @@ public function testGetCcp()
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->instance_no_stazione_canale_in_evento->getCcp());
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->instance_no_iuv_in_evento->getCcp());
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->instance_no_dominio_in_evento->getCcp());
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->instance_no_token_in_evento->getCcp());
$this->assertNull($this->instance_no_token_in_evento->getCcp());
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->instance_no_nav_in_evento->getCcp());
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->faultInstance->getCcp());
}
Expand All @@ -340,7 +340,7 @@ public function testGetPaymentToken()
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->instance_no_stazione_canale_in_evento->getPaymentToken());
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->instance_no_iuv_in_evento->getPaymentToken());
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->instance_no_dominio_in_evento->getPaymentToken());
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->instance_no_token_in_evento->getPaymentToken());
$this->assertNull($this->instance_no_token_in_evento->getPaymentToken());
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->instance_no_nav_in_evento->getPaymentToken());
$this->assertEquals('0a8ef4f0194f4886942cbc8da8fdbe04', $this->faultInstance->getPaymentToken());
}
Expand Down
Loading

0 comments on commit 4645eb6

Please sign in to comment.