Skip to content

Commit

Permalink
add ICBPER test
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Aug 4, 2019
1 parent 473157f commit 38b9136
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions tests/Xml/Builder/v21/FeInvoiceBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use Greenter\Data\Generator\InvoiceDiscountStore;
use Greenter\Data\Generator\InvoiceFullStore;
use Greenter\Data\Generator\InvoiceIcbperStore;
use Greenter\Data\Generator\InvoiceIvapStore;
use Greenter\Model\Sale\Invoice;
use Tests\Greenter\Xml\Builder\FeBuilderTrait;
Expand All @@ -33,21 +34,24 @@ public function testGenerate()
$this->assertSchema($xml);
}

public function testInvoiceWithDiscount()
/**
* @dataProvider storeProvider
*/
public function testBuilder($invoiceClass)
{
$invoice = $this->createDocument(InvoiceDiscountStore::class);
$invoice = $this->createDocument($invoiceClass);

$xml = $this->build($invoice);
$this->assertNotEmpty($xml);
$this->assertSchema($xml);
}

public function testInvoiceIvap()
public function storeProvider()
{
$invoice = $this->createDocument(InvoiceIvapStore::class);

$xml = $this->build($invoice);
$this->assertNotEmpty($xml);
$this->assertSchema($xml);
return [
[InvoiceDiscountStore::class],
[InvoiceIvapStore::class],
[InvoiceIcbperStore::class]
];
}
}

0 comments on commit 38b9136

Please sign in to comment.