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