Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F24327366
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
View Options
diff --git a/tests/Providers/EventServiceProviderTest.php b/tests/Providers/EventServiceProviderTest.php
index 49b7558..f2bcad5 100644
--- a/tests/Providers/EventServiceProviderTest.php
+++ b/tests/Providers/EventServiceProviderTest.php
@@ -1,41 +1,39 @@
<?php
namespace Nasqueron\Notifications\Tests\Providers;
-use Nasqueron\Notifications\Providers\EventServiceProvider;
-
use Config;
use File;
class EventServiceProviderTest extends TestCase {
public function testType () {
$this->assertServiceInstanceOf(
'Illuminate\Contracts\Events\Dispatcher',
'events'
);
}
///
/// Tests specific to this service provider
///
public function testOmittedFiles () {
$subscribe = [];
$namespace = $this->app->getInstance()->getNamespace() . 'Listeners\\';
$files = File::allFiles(app_path('Listeners'));
foreach ($files as $file) {
$class = $namespace . $file->getBasename('.php');
$subscribe[] = $class;
}
$this->assertEquals(
$subscribe, Config::get('app.listeners'),
'The files in the app/Listeners folder and the array of classes ' .
'defined in config/app.php at listeners key diverge.',
0.0, 10, true // delta, maxDepth, canonicalize
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Feb 16, 09:24 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3451688
Default Alt Text
(1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment