engelsystem/tests/Unit/Helpers/AssetsServiceProviderTest.php

26 lines
655 B
PHP
Raw Permalink 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()
{
$app = new Application();
$app->instance('path.assets.public', '/tmp');
$serviceProvider = new AssetsServiceProvider($app);
$serviceProvider->register();
$this->assertArrayHasKey(Assets::class, $app->contextual);
}
}