mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Improve test coverage.
This commit is contained in:
@@ -67,7 +67,7 @@ class StageImportDataHandlerTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'sidh_bbunq_' . random_int(1, 10000);
|
||||
$job->key = 'sidh_bbunq_' . $this->randomInt();
|
||||
$job->status = 'new';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'bunq';
|
||||
@@ -117,7 +117,7 @@ class StageImportDataHandlerTest extends TestCase
|
||||
$payment = new BunqPayment($amount, $pointer, 'Some descr', null, null);
|
||||
$payment->setAmount($amount);
|
||||
$payment->setCounterpartyAlias($labelMonetaryAccount);
|
||||
$payment->setDescription('Random description #' . random_int(1, 10000));
|
||||
$payment->setDescription('Random description #' . $this->randomInt());
|
||||
$value = [$payment];
|
||||
$list = new BunqResponsePaymentList($value, [], null);
|
||||
|
||||
@@ -216,7 +216,7 @@ class StageImportDataHandlerTest extends TestCase
|
||||
// {
|
||||
// $job = new ImportJob;
|
||||
// $job->user_id = $this->user()->id;
|
||||
// $job->key = 'sidA_bbunq_' . random_int(1, 10000);
|
||||
// $job->key = 'sidA_bbunq_' . $this->randomInt();
|
||||
// $job->status = 'new';
|
||||
// $job->stage = 'new';
|
||||
// $job->provider = 'bunq';
|
||||
@@ -290,7 +290,7 @@ class StageImportDataHandlerTest extends TestCase
|
||||
// {
|
||||
// $job = new ImportJob;
|
||||
// $job->user_id = $this->user()->id;
|
||||
// $job->key = 'sidh_bbunq_' . random_int(1, 10000);
|
||||
// $job->key = 'sidh_bbunq_' . $this->randomInt();
|
||||
// $job->status = 'new';
|
||||
// $job->stage = 'new';
|
||||
// $job->provider = 'bunq';
|
||||
@@ -344,7 +344,7 @@ class StageImportDataHandlerTest extends TestCase
|
||||
//
|
||||
// $payment = new BunqPayment($amount, $pointer, 'Some descr', null, null);
|
||||
// $payment->setAmount($amount);
|
||||
// $payment->setDescription('Some random thing #' . random_int(1, 10000));
|
||||
// $payment->setDescription('Some random thing #' . $this->randomInt());
|
||||
// $payment->setCounterpartyAlias($labelMonetaryAccount);
|
||||
// $value = [$payment];
|
||||
// $list = new BunqResponsePaymentList($value, [], null);
|
||||
@@ -427,7 +427,7 @@ class StageImportDataHandlerTest extends TestCase
|
||||
// {
|
||||
// $job = new ImportJob;
|
||||
// $job->user_id = $this->user()->id;
|
||||
// $job->key = 'sidh_bbunq_' . random_int(1, 10000);
|
||||
// $job->key = 'sidh_bbunq_' . $this->randomInt();
|
||||
// $job->status = 'new';
|
||||
// $job->stage = 'new';
|
||||
// $job->provider = 'bunq';
|
||||
@@ -477,7 +477,7 @@ class StageImportDataHandlerTest extends TestCase
|
||||
// $payment = new BunqPayment($amount, $pointer, 'Some descr', null, null);
|
||||
// $payment->setAmount($amount);
|
||||
// $payment->setCounterpartyAlias($labelMonetaryAccount);
|
||||
// $payment->setDescription('Random transfer #' . random_int(1, 10000));
|
||||
// $payment->setDescription('Random transfer #' . $this->randomInt());
|
||||
// $value = [$payment];
|
||||
// $list = new BunqResponsePaymentList($value, [], null);
|
||||
//
|
||||
|
@@ -67,7 +67,7 @@ class StageNewHandlerTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'snh_bunq_' . random_int(1, 10000);
|
||||
$job->key = 'snh_bunq_' . $this->randomInt();
|
||||
$job->status = 'new';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'bunq';
|
||||
@@ -154,7 +154,7 @@ class StageNewHandlerTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'snha_bunq_' . random_int(1, 10000);
|
||||
$job->key = 'snha_bunq_' . $this->randomInt();
|
||||
$job->status = 'new';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'bunq';
|
||||
@@ -246,7 +246,7 @@ class StageNewHandlerTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'snh_bbunq_' . random_int(1, 10000);
|
||||
$job->key = 'snh_bbunq_' . $this->randomInt();
|
||||
$job->status = 'new';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'bunq';
|
||||
|
Reference in New Issue
Block a user