Release 2.12 (#4609)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -17,7 +17,7 @@ use PHPUnit\Framework\TestCase;
|
||||
*/
|
||||
class InvoiceItemTest extends TestCase
|
||||
{
|
||||
public function testEmptyObject()
|
||||
public function testEmptyObject(): void
|
||||
{
|
||||
$sut = new InvoiceItem();
|
||||
|
||||
|
||||
@@ -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()));
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user