Browse Source

Remove sample config file from cakephp tests.

Not having the config file ensures apps work without a config file.
Mark Story 11 years ago
parent
commit
bdeafe8b1b
2 changed files with 5 additions and 5 deletions
  1. 5 1
      src/Core/Plugin.php
  2. 0 4
      tests/test_app/config/plugins.php

+ 5 - 1
src/Core/Plugin.php

@@ -119,8 +119,12 @@ class Plugin
             }
             return;
         }
+
         if (!Configure::check('pluginPaths')) {
-            Configure::load('plugins');
+            try {
+                Configure::load('plugins');
+            } catch (\Exception $e) {
+            }
         }
 
         $config += [

+ 0 - 4
tests/test_app/config/plugins.php

@@ -1,4 +0,0 @@
-<?php
-$config = [
-    'plugins' => []
-];