Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Pollastri committed Nov 13, 2023
1 parent b5c453f commit 4a972b3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 53 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/lint.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .php_cs

This file was deleted.

2 changes: 1 addition & 1 deletion .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":1,"defects":{"Axiostudio\\FatturaElettronica\\Tests\\AnagraficaTest::testConstructorWithNullValues":4},"times":{"Axiostudio\\FatturaElettronica\\Tests\\AnagraficaTest::testConstructor":0.002,"Axiostudio\\FatturaElettronica\\Tests\\AnagraficaTest::testConstructorWithNullValues":0.001}}
{"version":1,"defects":{"Axiostudio\\FatturaElettronica\\Tests\\AnagraficaTest::testConstructorWithNullValues":4,"Tests\\Axiostudio\\FatturaElettronica\\Models\\CedentePrestatoreTest::testConstructor":4},"times":{"Axiostudio\\FatturaElettronica\\Tests\\AnagraficaTest::testConstructor":0.005,"Axiostudio\\FatturaElettronica\\Tests\\AnagraficaTest::testConstructorWithNullValues":0.001,"Tests\\Axiostudio\\FatturaElettronica\\Models\\CedentePrestatoreTest::testConstructor":0.002}}
23 changes: 23 additions & 0 deletions tests/CedentePrestatoreTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace Tests\Axiostudio\FatturaElettronica\Models;

use Axiostudio\FatturaElettronica\Models\CedentePrestatore;
use PHPUnit\Framework\TestCase;
use Axiostudio\FatturaElettronica\Models\DatiAnagrafici;
use Axiostudio\FatturaElettronica\Models\Sede;

class CedentePrestatoreTest extends TestCase
{
public function testConstructor(): void
{
$datiAnagraficiArgs = [];
$sedeArgs = [];

$cedentePrestatore = new CedentePrestatore($datiAnagraficiArgs, $sedeArgs);

$this->assertInstanceOf(CedentePrestatore::class, $cedentePrestatore);
$this->assertInstanceOf(DatiAnagrafici::class, $cedentePrestatore->DatiAnagrafici);
$this->assertInstanceOf(Sede::class, $cedentePrestatore->Sede);
}
}

0 comments on commit 4a972b3

Please sign in to comment.