summaryrefslogtreecommitdiff
path: root/tests/Unit/Helpers/VersionServiceProviderTest.php
blob: 609c649d9e47ca355eaeaf73f119c83ff610482e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace Engelsystem\Test\Unit\Helpers;

use Engelsystem\Application;
use Engelsystem\Helpers\Version;
use Engelsystem\Helpers\VersionServiceProvider;
use Engelsystem\Test\Unit\ServiceProviderTest;

class VersionServiceProviderTest extends ServiceProviderTest
{
    /**
     * @covers \Engelsystem\Helpers\VersionServiceProvider::register
     */
    public function testRegister()
    {
        $app = new Application();
        $app->instance('path.storage.app', '/tmp');

        $serviceProvider = new VersionServiceProvider($app);
        $serviceProvider->register();

        $this->assertArrayHasKey(Version::class, $app->contextual);
    }
}