summaryrefslogtreecommitdiff
path: root/tests/Unit/Helpers/VersionServiceProviderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Helpers/VersionServiceProviderTest.php')
-rw-r--r--tests/Unit/Helpers/VersionServiceProviderTest.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/Unit/Helpers/VersionServiceProviderTest.php b/tests/Unit/Helpers/VersionServiceProviderTest.php
new file mode 100644
index 00000000..609c649d
--- /dev/null
+++ b/tests/Unit/Helpers/VersionServiceProviderTest.php
@@ -0,0 +1,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);
+ }
+}