engelsystem/tests/Unit/Helpers/AssetsServiceProviderTest.php

28 lines
687 B
PHP

<?php
declare(strict_types=1);
namespace Engelsystem\Test\Unit\Helpers;
use Engelsystem\Application;
use Engelsystem\Helpers\Assets;
use Engelsystem\Helpers\AssetsServiceProvider;
use Engelsystem\Test\Unit\ServiceProviderTest;
class AssetsServiceProviderTest extends ServiceProviderTest
{
/**
* @covers \Engelsystem\Helpers\AssetsServiceProvider::register
*/
public function testRegister(): void
{
$app = new Application();
$app->instance('path.assets.public', '/tmp');
$serviceProvider = new AssetsServiceProvider($app);
$serviceProvider->register();
$this->assertArrayHasKey(Assets::class, $app->contextual);
}
}