Page MenuHomeDevCentral

D237.id.diff
No OneTemporary

D237.id.diff

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

Mime Type
text/plain
Expires
Sun, Nov 24, 14:28 (5 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257821
Default Alt Text
D237.id.diff (1 KB)

Event Timeline