0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-04-20 03:46:29 +00:00
kevinpapst_kimai2/tests/ConsoleApplicationTest.php
Kevin Papst 00b5a65859
1.18.2 (#3190)
* improve console version output
* fix empty string issue in csv export (DDE protection) - fixes #3189
* fix twig sort deprecation in php 8
* sort user by displayName in users report
* fix missing custom translations in edit modal
* fix font-family in invoice.css
* invoice template "freelancer pdf" - added customer number, moved some fields around
* invoice template "default" - relocate customer number and order number in
2022-03-11 23:25:23 +01:00

30 lines
902 B
PHP

<?php
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Tests;
use App\ConsoleApplication;
use App\Constants;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\KernelInterface;
/**
* @covers \App\ConsoleApplication
*/
class ConsoleApplicationTest extends TestCase
{
public function testVersion()
{
$kernel = $this->createMock(KernelInterface::class);
$sut = new ConsoleApplication($kernel);
self::assertEquals(Constants::SOFTWARE, $sut->getName());
self::assertEquals(Constants::VERSION, $sut->getVersion());
self::assertEquals(sprintf('%s <info>%s</info> (env: <comment></>, debug: <comment>false</>)', Constants::SOFTWARE, Constants::VERSION), $sut->getLongVersion());
}
}