mirror of
https://github.com/filegator/filegator.git
synced 2025-08-11 16:03:59 +02:00
initial commit
This commit is contained in:
31
tests/backend/Unit/ViewTest.php
Normal file
31
tests/backend/Unit/ViewTest.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the FileGator package.
|
||||
*
|
||||
* (c) Milos Stojanovic <alcalbg@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE file
|
||||
*/
|
||||
|
||||
namespace Tests\Unit;
|
||||
|
||||
use Filegator\Config\Config;
|
||||
use Filegator\Services\View\Adapters\Vuejs;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class ViewTest extends TestCase
|
||||
{
|
||||
public function testViewService()
|
||||
{
|
||||
$config_mock = new Config(['frontend_config' => ['app_name' => 'testapp']]);
|
||||
|
||||
$service = new Vuejs($config_mock);
|
||||
$service->init();
|
||||
|
||||
$this->assertRegexp('/testapp/', $service->getIndexPage());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user