Release 2.0.35 (#4302)
This commit is contained in:
@@ -30,10 +30,10 @@ class DebugRendererTest extends TestCase
|
||||
/**
|
||||
* @dataProvider getTestModel
|
||||
*/
|
||||
public function testRender(InvoiceModel $model, $expectedRate, $expectedRows, $expectedDescriptions, $expectedUser1, $expectedUser2, $expectedUser3, $hasProject, $metaFields = [])
|
||||
public function testRender(InvoiceModel $model, $expectedRate, $expectedRows, $expectedDescriptions, $expectedUser1, $expectedUser2, $expectedUser3, $hasProject, $metaFields = []): void
|
||||
{
|
||||
$itemHydrator = new class() implements InvoiceItemHydrator {
|
||||
public function setInvoiceModel(InvoiceModel $model)
|
||||
public function setInvoiceModel(InvoiceModel $model): void
|
||||
{
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ class DebugRendererTest extends TestCase
|
||||
self::assertEquals('21.03.12', $data['model']['invoice.last']);
|
||||
}
|
||||
|
||||
protected function assertModelStructure(array $model, int $projectCounter = 0, int $activityCounter = 0)
|
||||
protected function assertModelStructure(array $model, int $projectCounter = 0, int $activityCounter = 0): void
|
||||
{
|
||||
$keys = [
|
||||
'invoice.due_date',
|
||||
@@ -243,7 +243,7 @@ class DebugRendererTest extends TestCase
|
||||
$this->assertEquals($keys, $givenKeys);
|
||||
}
|
||||
|
||||
protected function assertEntryStructure(array $model, array $metaFields)
|
||||
protected function assertEntryStructure(array $model, array $metaFields): void
|
||||
{
|
||||
$keys = [
|
||||
'entry.row',
|
||||
|
||||
@@ -26,6 +26,7 @@ use App\Invoice\DefaultInvoiceFormatter;
|
||||
use App\Invoice\InvoiceFormatter;
|
||||
use App\Invoice\InvoiceModel;
|
||||
use App\Invoice\NumberGenerator\DateNumberGenerator;
|
||||
use App\Invoice\NumberGeneratorInterface;
|
||||
use App\Invoice\Renderer\AbstractRenderer;
|
||||
use App\Model\InvoiceDocument;
|
||||
use App\Repository\InvoiceRepository;
|
||||
@@ -255,7 +256,7 @@ trait RendererTestTrait
|
||||
return $model;
|
||||
}
|
||||
|
||||
private function getNumberGeneratorSut()
|
||||
private function getNumberGeneratorSut(): NumberGeneratorInterface
|
||||
{
|
||||
$repository = $this->createMock(InvoiceRepository::class);
|
||||
$repository
|
||||
|
||||
Reference in New Issue
Block a user