Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769396
D237.id557.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D237.id557.diff
View Options
diff --git a/tests/Providers/AppServiceProviderTest.php b/tests/Providers/AppServiceProviderTest.php
new file mode 100644
--- /dev/null
+++ b/tests/Providers/AppServiceProviderTest.php
@@ -0,0 +1,14 @@
+<?php
+
+namespace Nasqueron\Notifications\Tests\Providers;
+
+class AppServiceProviderTest extends TestCase {
+
+ public function testType () {
+ $this->assertServiceInstanceOf(
+ 'Illuminate\Contracts\Foundation\Application',
+ 'app'
+ );
+ }
+
+}
diff --git a/tests/Providers/ReportServiceProviderTest.php b/tests/Providers/ReportServiceProviderTest.php
new file mode 100644
--- /dev/null
+++ b/tests/Providers/ReportServiceProviderTest.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace Nasqueron\Notifications\Tests\Providers;
+
+class ReportServiceProviderTest extends TestCase {
+
+ public function testType () {
+ $this->assertServiceInstanceOf(
+ 'Nasqueron\Notifications\Actions\ActionsReport',
+ 'report'
+ );
+ }
+
+ ///
+ /// Tests specific to this service provider
+ ///
+
+ public function testEvents () {
+ $dispatcher = $this->app->make('events');
+ $type = 'Nasqueron\Notifications\Events\ReportEvent';
+
+ // Currently, we don't have listener for ReportEvent.
+ $this->assertFalse($dispatcher->hasListeners($type));
+
+ // When we resolve an instance of our object in the container, we have.
+ $this->app->make('report');
+ $this->assertTrue($dispatcher->hasListeners($type));
+ }
+
+}
diff --git a/tests/Providers/RouteServiceProviderTest..php b/tests/Providers/RouteServiceProviderTest..php
new file mode 100644
--- /dev/null
+++ b/tests/Providers/RouteServiceProviderTest..php
@@ -0,0 +1,14 @@
+<?php
+
+namespace Nasqueron\Notifications\Tests\Providers;
+
+class BrokerServiceProviderTest extends TestCase {
+
+ public function testType () {
+ $this->assertServiceInstanceOf(
+ 'Illuminate\Routing\Router',
+ 'router'
+ );
+ }
+
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 14:28 (3 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257821
Default Alt Text
D237.id557.diff (1 KB)
Attached To
Mode
D237: Tests for service providers
Attached
Detach File
Event Timeline
Log In to Comment