Files
kimai2/tests/KernelTest.php
2021-03-08 16:06:22 +01:00

27 lines
599 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\Kernel;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Kernel
*/
class KernelTest extends TestCase
{
public function testBuild()
{
$sut = new Kernel('test', false);
$this->assertEquals($sut->getCacheDir(), realpath(__DIR__ . '/../var/cache/test'));
$this->assertEquals($sut->getLogDir(), realpath(__DIR__ . '/../var/log'));
}
}