2019-12-13 14:50:29 +00:00
|
|
|
<?php
|
2020-01-22 17:12:56 +00:00
|
|
|
|
2019-12-13 14:50:29 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-01-22 17:12:56 +00:00
|
|
|
use Codeception\Test\Unit;
|
2019-12-13 14:50:29 +00:00
|
|
|
use SuiteCRM\Core\Legacy\Navbar;
|
|
|
|
use SuiteCRM\Core\Legacy\NavbarService;
|
|
|
|
|
2020-01-22 17:12:56 +00:00
|
|
|
final class NavbarServiceTest extends Unit
|
2019-12-13 14:50:29 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var NavbarService
|
|
|
|
*/
|
|
|
|
private $navbarService;
|
|
|
|
|
2020-01-22 17:12:56 +00:00
|
|
|
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
|
|
|
|
{
|
2020-01-22 17:12:56 +00:00
|
|
|
$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());
|
|
|
|
}
|
|
|
|
}
|