Skip to content

Commit

Permalink
add MissingDatasourceException test
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Aug 18, 2014
1 parent 54b8c1d commit 0c1a7fe
Showing 1 changed file with 9 additions and 0 deletions.
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 0c1a7fe

Please sign in to comment.