Release 2.32 (#5411)
* bump packages * dynamic invoice options * make sure that invoice previews can be detected * support for mpdf associated files * do not include any future times in work contract calculation * re-add username column in Excel spreadsheet * deactivate internal rate editing * show if plugin update exists * shorten name to Kimai only, without Time-Tracking * remove check for existing id in work contract * fix metafield already defined in search * helper methods to unlock months * new translation * send event on unlock month
This commit is contained in:
@@ -50,7 +50,7 @@ class ThemeEventExtensionTest extends TestCase
|
||||
];
|
||||
}
|
||||
|
||||
protected function getSut(bool $hasListener = true, string $title = null): ThemeExtension
|
||||
protected function getSut(bool $hasListener = true): ThemeExtension
|
||||
{
|
||||
$dispatcher = $this->createMock(EventDispatcherInterface::class);
|
||||
$dispatcher->method('hasListeners')->willReturn($hasListener);
|
||||
@@ -155,18 +155,6 @@ class ThemeEventExtensionTest extends TestCase
|
||||
public function testGetTitle(): void
|
||||
{
|
||||
$sut = $this->getSut(false);
|
||||
self::assertEquals('Kimai – foo', $sut->generateTitle());
|
||||
self::assertEquals('sdfsdf | Kimai – foo', $sut->generateTitle('sdfsdf | '));
|
||||
self::assertEquals('<b>Kimai</b> ... foo', $sut->generateTitle('<b>', '</b> ... '));
|
||||
self::assertEquals('Kimai | foo', $sut->generateTitle(null, ' | '));
|
||||
}
|
||||
|
||||
public function testGetBrandedTitle(): void
|
||||
{
|
||||
$sut = $this->getSut(false, 'MyCompany');
|
||||
self::assertEquals('Kimai – foo', $sut->generateTitle());
|
||||
self::assertEquals('sdfsdf | Kimai – foo', $sut->generateTitle('sdfsdf | '));
|
||||
self::assertEquals('<b>Kimai</b> ... foo', $sut->generateTitle('<b>', '</b> ... '));
|
||||
self::assertEquals('Kimai | foo', $sut->generateTitle(null, ' | '));
|
||||
self::assertEquals('Kimai', $sut->generateTitle());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user