Skip to content

Commit

Permalink
fixed: fixed test file
Browse files Browse the repository at this point in the history
  • Loading branch information
FazePino committed Jun 7, 2024
1 parent 4c410ab commit 00e9091
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
10 changes: 5 additions & 5 deletions tests/Fake/Settings/TestPaymentAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ public function getFakePaymentAccount(
): array {
return [
'id' => $this->value($param, 'id', 1),
'name' => $this->value($param, 'name', 'Mario'),
'type' => $this->value($param, 'type', 'admin'),
'iban' => $this->value($param, 'iban', 'IT60X0542811101000000123456'),
'sia' => $this->value($param, 'sia', 'I5jF9'),
'cuc' => $this->value($param, 'cuc', 'SIAI5jF9'),
'name' => $this->value($param, 'name', null),
'type' => $this->value($param, 'type', null),
'iban' => $this->value($param, 'iban', null),
'sia' => $this->value($param, 'sia', null),
'cuc' => $this->value($param, 'cuc', null),
'virtual' => $this->value($param, 'virtual', true),
];
}
Expand Down
8 changes: 4 additions & 4 deletions tests/Fake/Settings/TestPaymentMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function getFakePaymentMethods(
return [
'id' => $this->value($params, 'id', 4),
'name' => $this->value($params, 'name', 'Default'),
'type' => $this->value($params, 'type', 'User'),
'type' => $this->value($params, 'type', null),
'is_default' => $this->value($params, 'is_default', false),
'default_payment_account' => [
'id' => $this->value($params, 'default_payment_account.id', null),
Expand All @@ -27,9 +27,9 @@ public function getFakePaymentMethods(
'title' => $this->value($params, 'details.title', null),
'description' => $this->value($params, 'details.description', null),
],
'bank_iban' => $this->value($params, 'bank_iban', 'AD1200012030200359100100'),
'bank_name' => $this->value($params, 'bank_name', 'Padova'),
'ei_payment_method' => $this->value($params, 'ei_payment_method', 'idk')
'bank_iban' => $this->value($params, 'bank_iban', null),
'bank_name' => $this->value($params, 'bank_name', null),
'ei_payment_method' => $this->value($params, 'ei_payment_method', null)
];
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace OfflineAgency\LaravelFattureInCloudV2\Tests\Fake;
namespace OfflineAgency\LaravelFattureInCloudV2\Tests\Feature;

use PHPUnit\Framework\TestCase;
use OfflineAgency\LaravelFattureInCloudV2\Tests\Fake\ArchiveDocument\TestArchiveDocument;
use PHPUnit\Framework\TestCase;

class FakeArchiveDocumentsResponse extends TestCase
class ArchiveDocumentsTest extends TestCase
{
public function testGetFakeArchiveDocument()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

namespace OfflineAgency\LaravelFattureInCloudV2\Tests\Feature;

use OfflineAgency\LaravelFattureInCloudV2\Tests\Fake\CashBook;
use PHPUnit\Framework\TestCase;

class FakeCashBookResponse extends TestCase
class CashBookTest extends TestCase
{
public function testGetFakeCashBookEntry()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php

namespace OfflineAgency\LaravelFattureInCloudV2\Tests\Feature;

use OfflineAgency\LaravelFattureInCloudV2\Tests\Fake\Settings\TestPaymentAccount;
use OfflineAgency\LaravelFattureInCloudV2\Tests\Fake\Settings\TestPaymentMethods;
use OfflineAgency\LaravelFattureInCloudV2\Tests\Fake\Settings\TestTypeVat;
use PHPUnit\Framework\TestCase;

class FakeSettingsResponse extends TestCase
class SettingsTest extends TestCase
{
public function testGetFakePaymentMethods()
{
Expand Down

0 comments on commit 00e9091

Please sign in to comment.