Page MenuHomeDevCentral

No OneTemporary

diff --git a/tests/Providers/TestCase.php b/tests/Providers/TestCase.php
new file mode 100644
index 0000000..f374406
--- /dev/null
+++ b/tests/Providers/TestCase.php
@@ -0,0 +1,20 @@
+<?php
+
+namespace Nasqueron\Notifications\Tests\Providers;
+
+use Nasqueron\Notifications\Tests\TestCase as BaseTestCase;
+
+class TestCase extends BaseTestCase {
+
+ /**
+ * Asserts a service in the application container is from the expected type.
+ *
+ * @param $expectedType The type to check
+ * @param $serviceName The service name to use as application container key
+ */
+ public function assertServiceInstanceOf ($expectedType, $serviceName) {
+ $service = $this->app->make($serviceName);
+ $this->assertInstanceOf($expectedType, $service);
+ }
+
+}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Aug 8, 03:02 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3975222
Default Alt Text
(786 B)

Event Timeline