Page MenuHomeDevCentral

No OneTemporary

diff --git a/tests/Providers/AppServiceProviderTest.php b/tests/Providers/AppServiceProviderTest.php
new file mode 100644
index 0000000..d5d9822
--- /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
index 0000000..11cdb4a
--- /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
index 0000000..ebd9ffe
--- /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

Mime Type
text/x-diff
Expires
Sun, Nov 24, 17:10 (11 m, 16 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258498
Default Alt Text
(2 KB)

Event Timeline