Files
kimai2/tests/Utils/AvatarServiceTest.php
Kevin Papst 8d41fa20bd prepare release 1.13 (#2290)
* make voters a final class
* upgrade dependencies
* sort project alphabetically in dashboard widget
* open detail page on row click
* do not break on null tag name
* added max height to scrollable widgets on dashboard
* added timesheet duplicate event
* allow to deactivate browser title update
* improve comment box
* moved role permissions to own menu
* removed tabs in user screen
* fix user can remove super-admin from own account
2021-02-01 23:43:47 +01:00

31 lines
764 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\Utils;
use App\Utils\AvatarService;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Utils\AvatarService
*/
class AvatarServiceTest extends TestCase
{
public function testDataDirectory()
{
$data = realpath(__DIR__ . '/../../');
$sut = new AvatarService($data);
self::assertEquals($data . '/public/avatars', $sut->getStorageDirectory());
$data = realpath(__DIR__ . '/../../var/data/');
$sut->setStorageDirectory($data);
self::assertEquals($data, $sut->getStorageDirectory());
}
}