26 lines
665 B
PHP
26 lines
665 B
PHP
|
<?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(): void
|
||
|
{
|
||
|
$app = new Application();
|
||
|
$app->instance('path.storage.app', '/tmp');
|
||
|
|
||
|
$serviceProvider = new VersionServiceProvider($app);
|
||
|
$serviceProvider->register();
|
||
|
|
||
|
$this->assertArrayHasKey(Version::class, $app->contextual);
|
||
|
}
|
||
|
}
|