Release 2.12 (#4609)

This commit is contained in:
Kevin Papst
2024-02-07 23:47:25 +01:00
committed by GitHub
parent 7abe787778
commit 85a16a9363
394 changed files with 1189 additions and 6735 deletions

View File

@@ -20,7 +20,7 @@ class InvoiceItemDefaultHydratorTest extends TestCase
{
use RendererTestTrait;
public function testHydrate()
public function testHydrate(): void
{
$model = $this->getInvoiceModel();
@@ -36,7 +36,7 @@ class InvoiceItemDefaultHydratorTest extends TestCase
$this->assertEntryStructure($result, $metaFields);
}
protected function assertEntryStructure(array $model, array $metaFields)
public function assertEntryStructure(array $model, array $metaFields): void
{
$keys = [
'entry.row',

View File

@@ -21,7 +21,7 @@ class InvoiceModelActivityHydratorTest extends TestCase
{
use RendererTestTrait;
public function testHydrate()
public function testHydrate(): void
{
$model = $this->getInvoiceModel();
@@ -31,7 +31,7 @@ class InvoiceModelActivityHydratorTest extends TestCase
$this->assertModelStructure($result);
}
protected function assertModelStructure(array $model)
public function assertModelStructure(array $model): void
{
$keys = [
'activity.id',

View File

@@ -21,7 +21,7 @@ class InvoiceModelProjectHydratorTest extends TestCase
{
use RendererTestTrait;
public function testHydrate()
public function testHydrate(): void
{
$model = $this->getInvoiceModel();
@@ -31,7 +31,7 @@ class InvoiceModelProjectHydratorTest extends TestCase
$this->assertModelStructure($result);
}
protected function assertModelStructure(array $model)
public function assertModelStructure(array $model): void
{
$keys = [
'project.id',

View File

@@ -20,7 +20,7 @@ class InvoiceModelUserHydratorTest extends TestCase
{
use RendererTestTrait;
public function testHydrate()
public function testHydrate(): void
{
$model = $this->getInvoiceModel();
@@ -30,7 +30,7 @@ class InvoiceModelUserHydratorTest extends TestCase
$this->assertModelStructure($result);
}
protected function assertModelStructure(array $model)
public function assertModelStructure(array $model): void
{
$keys = [
'user.display',

View File

@@ -17,7 +17,7 @@ use PHPUnit\Framework\TestCase;
*/
class InvoiceItemTest extends TestCase
{
public function testEmptyObject()
public function testEmptyObject(): void
{
$sut = new InvoiceItem();

View File

@@ -40,7 +40,7 @@ class DateNumberGeneratorTest extends TestCase
return new DateNumberGenerator($repository);
}
public function testGetInvoiceNumber()
public function testGetInvoiceNumber(): void
{
$sut = $this->getSut(false, false);
$sut->setModel((new InvoiceModelFactoryFactory($this))->create()->createModel(new DebugFormatter(), new Customer('foo'), new InvoiceTemplate(), new InvoiceQuery()));
@@ -49,7 +49,7 @@ class DateNumberGeneratorTest extends TestCase
$this->assertEquals('date', $sut->getId());
}
public function testGetInvoiceNumberWithExisting()
public function testGetInvoiceNumberWithExisting(): void
{
$sut = $this->getSut(true, false);
$sut->setModel((new InvoiceModelFactoryFactory($this))->create()->createModel(new DebugFormatter(), new Customer('foo'), new InvoiceTemplate(), new InvoiceQuery()));
@@ -58,7 +58,7 @@ class DateNumberGeneratorTest extends TestCase
$this->assertEquals('date', $sut->getId());
}
public function testGetInvoiceNumberWithManyExisting()
public function testGetInvoiceNumberWithManyExisting(): void
{
$sut = $this->getSut(true, true);
$sut->setModel((new InvoiceModelFactoryFactory($this))->create()->createModel(new DebugFormatter(), new Customer('foo'), new InvoiceTemplate(), new InvoiceQuery()));

View File

@@ -24,7 +24,7 @@ class OdsRendererTest extends TestCase
{
use RendererTestTrait;
public function testSupports()
public function testSupports(): void
{
$sut = $this->getAbstractRenderer(OdsRenderer::class);
@@ -45,7 +45,7 @@ class OdsRendererTest extends TestCase
/**
* @dataProvider getTestModel
*/
public function testRender(InvoiceModel $model, $expectedRate, $expectedRows, $expectedDescriptions, $expectedUser1, $expectedUser2, $expectedUser3)
public function testRender(InvoiceModel $model, $expectedRate, $expectedRows, $expectedDescriptions, $expectedUser1, $expectedUser2, $expectedUser3): void
{
/** @var OdsRenderer $sut */
$sut = $this->getAbstractRenderer(OdsRenderer::class);

View File

@@ -25,7 +25,7 @@ class XlsxRendererTest extends TestCase
{
use RendererTestTrait;
public function testSupports()
public function testSupports(): void
{
$sut = $this->getAbstractRenderer(XlsxRenderer::class);
@@ -46,7 +46,7 @@ class XlsxRendererTest extends TestCase
/**
* @dataProvider getTestModel
*/
public function testRender(InvoiceModel $model, $expectedRate, $expectedRows, $expectedDescriptions, $expectedUser1, $expectedUser2, $expectedUser3)
public function testRender(InvoiceModel $model, $expectedRate, $expectedRows, $expectedDescriptions, $expectedUser1, $expectedUser2, $expectedUser3): void
{
/** @var XlsxRenderer $sut */
$sut = $this->getAbstractRenderer(XlsxRenderer::class);