- avatars via css only - random colors for entities - improves print view - added colors for teams - added color to tag
37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
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\Reporting\ProjectDetails;
|
|
|
|
use App\Entity\Project;
|
|
use App\Entity\User;
|
|
use App\Reporting\ProjectDetails\ProjectDetailsModel;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
/**
|
|
* @covers \App\Reporting\ProjectDetails\ProjectDetailsModel
|
|
*/
|
|
class ProjectDetailsModelTest extends TestCase
|
|
{
|
|
public function testDefaults()
|
|
{
|
|
$project = new Project();
|
|
$sut = new ProjectDetailsModel($project);
|
|
|
|
self::assertSame($project, $sut->getProject());
|
|
self::assertIsArray($sut->getActivities());
|
|
self::assertIsArray($sut->getUserStats());
|
|
self::assertIsArray($sut->getYears());
|
|
self::assertIsArray($sut->getUserYears('2999'));
|
|
self::assertIsArray($sut->getYearActivities('2999'));
|
|
self::assertNull($sut->getYear('2999'));
|
|
self::assertNull($sut->getUserYear('2999', new User()));
|
|
}
|
|
}
|