Files
luos/tests/unit/framework/src/Maveriks/Pattern/Mvc/SmartyViewTest.php
Julio Cesar Laura Avendaño 1bf4429ac9 PMC-1218
2019-09-26 09:37:16 -04:00

34 lines
861 B
PHP

<?php
namespace Tests\unit\framework\src\Maveriks\Pattern\Mvc;
use Maveriks\Pattern\Mvc\SmartyView;
use Smarty;
use Tests\TestCase;
class SmartyViewTest extends TestCase
{
/**
* Test the constructor of the SmartyView class
*
* @test
*
* @covers \Maveriks\Pattern\Mvc\SmartyView::__construct()
*/
public function it_should_test_the_class_constructor()
{
// Instance class SmartyView
$smartyView = new SmartyView();
// Get "smarty" property
$smartyInstance = $smartyView->getSmarty();
// Assert correct class instance
$this->assertInstanceOf(Smarty::class, $smartyInstance);
// Assert that the required folders exist
$this->assertDirectoryExists($smartyInstance->compile_dir);
$this->assertDirectoryExists($smartyInstance->cache_dir);
}
}