Browse Source

Update tests for exception rendering.

Mark Story 11 years ago
parent
commit
80749562e9
1 changed files with 6 additions and 6 deletions
  1. 6 6
      tests/TestCase/Error/ExceptionRendererTest.php

+ 6 - 6
tests/TestCase/Error/ExceptionRendererTest.php

@@ -465,7 +465,7 @@ class ExceptionRendererTest extends TestCase {
 		$result = $ExceptionRenderer->render()->body();
 
 		$this->assertEquals('missingController', $ExceptionRenderer->template);
-		$this->assertContains('<h2>Missing Controller</h2>', $result);
+		$this->assertContains('Missing Controller', $result);
 		$this->assertContains('<em>PostsController</em>', $result);
 	}
 
@@ -507,7 +507,7 @@ class ExceptionRendererTest extends TestCase {
 			array(
 				new MissingHelperException(array('class' => 'MyCustomHelper')),
 				array(
-					'/<h2>Missing Helper<\/h2>/',
+					'/Missing Helper/',
 					'/<em>MyCustomHelper<\/em> could not be found./',
 					'/Create the class <em>MyCustomHelper<\/em> below in file:/',
 					'/(\/|\\\)MyCustomHelper.php/'
@@ -517,7 +517,7 @@ class ExceptionRendererTest extends TestCase {
 			array(
 				new MissingBehaviorException(array('class' => 'MyCustomBehavior')),
 				array(
-					'/<h2>Missing Behavior<\/h2>/',
+					'/Missing Behavior/',
 					'/Create the class <em>MyCustomBehavior<\/em> below in file:/',
 					'/(\/|\\\)MyCustomBehavior.php/'
 				),
@@ -526,7 +526,7 @@ class ExceptionRendererTest extends TestCase {
 			array(
 				new MissingComponentException(array('class' => 'SideboxComponent')),
 				array(
-					'/<h2>Missing Component<\/h2>/',
+					'/Missing Component/',
 					'/Create the class <em>SideboxComponent<\/em> below in file:/',
 					'/(\/|\\\)SideboxComponent.php/'
 				),
@@ -535,7 +535,7 @@ class ExceptionRendererTest extends TestCase {
 			array(
 				new MissingDatasourceConfigException(array('name' => 'MyDatasourceConfig')),
 				array(
-					'/<h2>Missing Datasource Configuration<\/h2>/',
+					'/Missing Datasource Configuration/',
 					'/<em>MyDatasourceConfig<\/em> was not found/'
 				),
 				500
@@ -543,7 +543,7 @@ class ExceptionRendererTest extends TestCase {
 			array(
 				new MissingDatasourceException(array('class' => 'MyDatasource', 'plugin' => 'MyPlugin')),
 				array(
-					'/<h2>Missing Datasource<\/h2>/',
+					'/Missing Datasource/',
 					'/<em>MyPlugin.MyDatasource<\/em> could not be found./'
 				),
 				500