engelsystem/tests/Unit/Helpers/AssetsServiceProviderTest.php

26 lines
661 B
PHP
Raw Normal View History

<?php
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);
}
}