SuiteCRM-Core/tests/unit/legacy/NavbarServiceTest.php

37 lines
835 B
PHP
Raw Normal View History

2019-12-13 14:50:29 +00:00
<?php
2019-12-13 14:50:29 +00:00
declare(strict_types=1);
use Codeception\Test\Unit;
2019-12-13 14:50:29 +00:00
use SuiteCRM\Core\Legacy\Navbar;
use SuiteCRM\Core\Legacy\NavbarService;
final class NavbarServiceTest extends Unit
2019-12-13 14:50:29 +00:00
{
/**
* @var NavbarService
*/
private $navbarService;
protected function setUp(): void
2019-12-13 14:50:29 +00:00
{
$this->navbarService = new NavbarService();
}
public function testGetName(): void
{
$this->assertSame('template.navbar', $this->navbarService->getName());
}
public function testGetDescription(): void
{
$this->assertSame('This service will deal with retrieval of the navbar structure',
$this->navbarService->getDescription());
2019-12-13 14:50:29 +00:00
}
public function testCreateService(): void
{
$this->assertInstanceOf(Navbar::class, $this->navbarService->createService());
}
}