mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-11 09:08:40 +00:00
46 lines
896 B
PHP
Executable File
46 lines
896 B
PHP
Executable File
<?php
|
|
/**
|
|
* Karaka
|
|
*
|
|
* PHP Version 8.1
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://karaka.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Support\tests\Views;
|
|
|
|
use Modules\Support\Views\TicketView;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
class TicketViewTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
/**
|
|
* @covers Modules\Support\Views\TicketView
|
|
* @group framework
|
|
*/
|
|
public function testDefault() : void
|
|
{
|
|
$view = new TicketView();
|
|
|
|
self::assertStringContainsString('', $view->getAccountImage(999));
|
|
}
|
|
|
|
/**
|
|
* @covers Modules\Support\Views\TicketView
|
|
* @group framework
|
|
*/
|
|
public function testAccountImageUrl() : void
|
|
{
|
|
$view = new TicketView();
|
|
|
|
self::assertEquals('Web/Backend/img/default-user.jpg', $view->getAccountImage(1));
|
|
}
|
|
}
|