Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3937116
D235.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
894 B
Referenced Files
None
Subscribers
None
D235.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 15:16 (19 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2314073
Default Alt Text
D235.diff (894 B)
Attached To
Mode
D235: Unit test for app.providers config
Attached
Detach File
Event Timeline
Log In to Comment