2023-04-21 09:30:12 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
|
|
*/
|
|
|
|
|
2023-04-27 08:42:50 +02:00
|
|
|
namespace Tests\Feature\EInvoice;
|
2023-04-21 09:30:12 +02:00
|
|
|
|
|
|
|
use App\Services\Invoice\EInvoice\FatturaPA;
|
|
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
|
|
use Illuminate\Routing\Middleware\ThrottleRequests;
|
|
|
|
use Tests\MockAccountData;
|
|
|
|
use Tests\TestCase;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @test
|
|
|
|
*/
|
|
|
|
class FatturaPATest extends TestCase
|
|
|
|
{
|
|
|
|
use DatabaseTransactions;
|
|
|
|
use MockAccountData;
|
|
|
|
|
|
|
|
protected function setUp(): void
|
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
|
|
|
|
$this->makeTestData();
|
|
|
|
|
|
|
|
$this->withoutMiddleware(
|
|
|
|
ThrottleRequests::class
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testInvoiceBoot()
|
|
|
|
{
|
|
|
|
$fat = new FatturaPA($this->invoice);
|
|
|
|
$xml = $fat->run();
|
|
|
|
|
2023-04-21 09:30:25 +02:00
|
|
|
// nlog($xml);
|
2023-04-21 09:30:12 +02:00
|
|
|
|
|
|
|
$this->assertnotNull($xml);
|
|
|
|
}
|
2023-11-26 08:41:42 +01:00
|
|
|
}
|