Skip to content

Commit

Permalink
Merge pull request #4292 from antograssiot/3.0-error-template
Browse files Browse the repository at this point in the history
3.0 error template
  • Loading branch information
markstory committed Aug 18, 2014
2 parents d35db70 + 0c1a7fe commit 07d979d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 31 deletions.
31 changes: 0 additions & 31 deletions src/Template/Error/missing_database.ctp

This file was deleted.

9 changes: 9 additions & 0 deletions tests/TestCase/Error/ExceptionRendererTest.php
Expand Up @@ -25,6 +25,7 @@
use Cake\Core\Error\MissingPluginException;
use Cake\Core\Plugin;
use Cake\Datasource\Error\MissingDatasourceConfigException;
use Cake\Datasource\Error\MissingDatasourceException;
use Cake\Error;
use Cake\Error\ExceptionRenderer;
use Cake\Event\Event;
Expand Down Expand Up @@ -573,6 +574,14 @@ public static function testProvider() {
),
500
),
array(
new MissingDatasourceException(array('class' => 'MyDatasource', 'plugin' => 'MyPlugin')),
array(
'/<h2>Missing Datasource<\/h2>/',
'/<em>MyPlugin.MyDatasource<\/em> could not be found./'
),
500
),
array(
new \Exception('boom'),
array(
Expand Down

0 comments on commit 07d979d

Please sign in to comment.