SuiteCRM-Core/tests/unit/legacy/NavbarServiceTest.php
Dillon-Brown a787d0d82f Add codeception testing framework
This implements the basic structure that will be used for future unit, functional and acceptance tests.
2021-03-30 19:21:30 +01:00

36 lines
835 B
PHP

<?php
declare(strict_types=1);
use Codeception\Test\Unit;
use SuiteCRM\Core\Legacy\Navbar;
use SuiteCRM\Core\Legacy\NavbarService;
final class NavbarServiceTest extends Unit
{
/**
* @var NavbarService
*/
private $navbarService;
protected function setUp(): void
{
$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());
}
public function testCreateService(): void
{
$this->assertInstanceOf(Navbar::class, $this->navbarService->createService());
}
}