Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3912451
D229.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
764 B
Referenced Files
None
Subscribers
None
D229.diff
View Options
diff --git a/tests/Providers/TestCase.php b/tests/Providers/TestCase.php
new file mode 100644
--- /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
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 05:55 (12 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307590
Default Alt Text
D229.diff (764 B)
Attached To
Mode
D229: Base unit test case for service providers
Attached
Detach File
Event Timeline
Log In to Comment