Page MenuHomeDevCentral

D235.id554.diff
No OneTemporary

D235.id554.diff

diff --git a/tests/Providers/ConfigTest.php b/tests/Providers/ConfigTest.php
new file mode 100644
--- /dev/null
+++ b/tests/Providers/ConfigTest.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Nasqueron\Notifications\Tests\Providers;
+
+use Config;
+use File;
+
+class ConfigTest extends TestCase {
+ public function testOmittedFiles () {
+ $providers = [];
+
+ $actualProviders = Config::get('app.providers');
+
+ $namespace = $this->app->getInstance()->getNamespace() . 'Providers\\';
+ $files = File::allFiles(app_path('Providers'));
+ foreach ($files as $file) {
+ $class = $namespace . $file->getBasename('.php');
+ $this->assertContains(
+ $class, $actualProviders,
+ "The class $class should be added to config/app.php in the " .
+ "providers array."
+ );
+ }
+ }
+}

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 17:46 (16 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2314073
Default Alt Text
D235.id554.diff (894 B)

Event Timeline