events: extend system configurations and set invoice formatter (#1995)

This commit is contained in:
Kevin Papst
2020-09-25 19:51:23 +02:00
committed by GitHub
parent 23f484a14d
commit 2b033710e2
10 changed files with 119 additions and 41 deletions

View File

@@ -41,6 +41,11 @@ class InvoiceModelTest extends TestCase
self::assertInstanceOf(\DateTime::class, $sut->getInvoiceDate());
self::assertSame($formatter, $sut->getFormatter());
$newFormatter = new DebugFormatter();
$sut->setFormatter($newFormatter);
self::assertNotSame($formatter, $sut->getFormatter());
self::assertSame($newFormatter, $sut->getFormatter());
}
public function testEmptyObjectThrowsExceptionOnNumberGenerator()