Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)
This commit is contained in:
@@ -17,11 +17,13 @@ use PHPUnit\Framework\TestCase;
|
||||
*/
|
||||
class ThemeJavascriptTranslationsEventTest extends TestCase
|
||||
{
|
||||
public const COUNTER = 17;
|
||||
|
||||
public function testDefaultValues()
|
||||
{
|
||||
$sut = new ThemeJavascriptTranslationsEvent();
|
||||
|
||||
$this->assertCount(24, $sut->getTranslations());
|
||||
$this->assertCount(self::COUNTER, $sut->getTranslations());
|
||||
}
|
||||
|
||||
public function testGetterAndSetter()
|
||||
@@ -31,7 +33,7 @@ class ThemeJavascriptTranslationsEventTest extends TestCase
|
||||
$sut->setTranslation('hello', 'world', 'testing');
|
||||
|
||||
$result = $sut->getTranslations();
|
||||
self::assertCount(26, $result);
|
||||
self::assertCount(self::COUNTER + 2, $result);
|
||||
self::assertArrayHasKey('foo', $result);
|
||||
self::assertEquals(['bar', 'messages'], $result['foo']);
|
||||
self::assertArrayHasKey('hello', $result);
|
||||
|
||||
Reference in New Issue
Block a user