You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
659 B
PHTML
26 lines
659 B
PHTML
5 years ago
|
<?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);
|
||
|
}
|
||
|
}
|