Page MenuHomeDevCentral

No OneTemporary

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

Mime Type
text/x-diff
Expires
Mon, Feb 16, 09:24 (23 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3451688
Default Alt Text
(1 KB)

Event Timeline