Skip to content

Commit 58cefb3

Browse files
committed
Fixed unit tests
1 parent 034e146 commit 58cefb3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/tests/Invoice/InvoiceRepositoryTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
use Smart\Sage50\Config;
88
use Smart\Sage50\Doctrine\Doctrine;
99
use Smart\Sage50\Invoice\InvoiceEntity;
10-
use Smart\Sage50\Invoice\ItemTax\ItemTaxEntity;
11-
use Smart\Sage50\Invoice\TotalTaxes\TotalTaxesEntity;
10+
use Smart\Sage50\Invoice\InvoiceLookup\ItemTax\ItemTaxEntity;
11+
use Smart\Sage50\Invoice\InvoiceLookup\TotalTaxes\TotalTaxesEntity;
1212

1313
class InvoiceRepositoryTest extends PHPUnit_Framework_TestCase
1414
{
@@ -53,9 +53,9 @@ public function testFetchItems()
5353
/** @var InvoiceEntity $invoice */
5454
$invoice = $result[0];
5555

56-
$this->assertInstanceOf(TotalTaxesEntity::class, $invoice->getTotalTaxes());
56+
$this->assertInstanceOf(TotalTaxesEntity::class, $invoice->getInvoiceLookup()->getTotalTaxes());
5757

58-
$this->assertGreaterThanOrEqual(1, count($invoice->getItems()));
59-
$this->assertInstanceOf(ItemTaxEntity::class, $invoice->getItems()[0]->getTax());
58+
$this->assertGreaterThanOrEqual(1, count($invoice->getInvoiceLookup()->getItems()));
59+
$this->assertInstanceOf(ItemTaxEntity::class, $invoice->getInvoiceLookup()->getItems()[0]->getTax());
6060
}
6161
}

0 commit comments

Comments
 (0)