added project detail report (#2651)
- avatars via css only - random colors for entities - improves print view - added colors for teams - added color to tag
This commit is contained in:
36
tests/Reporting/ProjectDetails/ProjectDetailsModelTest.php
Normal file
36
tests/Reporting/ProjectDetails/ProjectDetailsModelTest.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user