mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-28 22:09:32 +00:00
Use [[PLACEHOLDER]] instead of %%PLACEHOLDER%% for label placeholders.
This commit is contained in:
parent
cb2d0d9845
commit
3163a7ba09
14 changed files with 80 additions and 78 deletions
|
|
@ -36,6 +36,7 @@ class TimestampableElementProviderTest extends WebTestCase
|
|||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
\Locale::setDefault('en');
|
||||
$this->service = self::$container->get(TimestampableElementProvider::class);
|
||||
$this->target = new class implements TimeStampableInterface {
|
||||
|
||||
|
|
@ -59,11 +60,12 @@ class TimestampableElementProviderTest extends WebTestCase
|
|||
|
||||
public function dataProvider(): array
|
||||
{
|
||||
\Locale::setDefault('en');
|
||||
$formatted = \IntlDateFormatter::formatObject(new \DateTime('2000-01-01'), \IntlDateFormatter::SHORT);
|
||||
|
||||
return [
|
||||
[$formatted, '%%LAST_MODIFIED%%'],
|
||||
[$formatted, '%%CREATION_DATE%%'],
|
||||
[$formatted, '[[LAST_MODIFIED]]'],
|
||||
[$formatted, '[[CREATION_DATE]]'],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue