|
|
@@ -694,11 +694,11 @@ class ExceptionRendererTest extends TestCase
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Test that missing subDir/layoutPath don't cause other fatal errors.
|
|
|
+ * Test that missing layoutPath don't cause other fatal errors.
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function testMissingSubdirRenderSafe()
|
|
|
+ public function testMissingLayoutPathRenderSafe()
|
|
|
{
|
|
|
$exception = new NotFoundException();
|
|
|
$ExceptionRenderer = new ExceptionRenderer($exception);
|
|
|
@@ -706,7 +706,6 @@ class ExceptionRendererTest extends TestCase
|
|
|
$ExceptionRenderer->controller = $this->getMock('Cake\Controller\Controller', ['render']);
|
|
|
$ExceptionRenderer->controller->helpers = ['Fail', 'Boom'];
|
|
|
$ExceptionRenderer->controller->layoutPath = 'boom';
|
|
|
- $ExceptionRenderer->controller->subDir = 'boom';
|
|
|
$ExceptionRenderer->controller->request = new Request;
|
|
|
|
|
|
$ExceptionRenderer->controller->expects($this->once())
|
|
|
@@ -726,7 +725,6 @@ class ExceptionRendererTest extends TestCase
|
|
|
|
|
|
$ExceptionRenderer->render();
|
|
|
$this->assertEquals('', $ExceptionRenderer->controller->layoutPath);
|
|
|
- $this->assertEquals('', $ExceptionRenderer->controller->subDir);
|
|
|
$this->assertEquals('Error', $ExceptionRenderer->controller->viewPath);
|
|
|
}
|
|
|
|