From b79812894248485a20e28afbffe19d6516746d0d Mon Sep 17 00:00:00 2001 From: Mark Story Date: Fri, 6 Nov 2015 21:32:54 -0500 Subject: [PATCH] Remove dead tests. These tests only test a stub in the test suite. To me this is very pointless. --- .../Controller/PagesControllerTest.php | 76 ------------------- 1 file changed, 76 deletions(-) delete mode 100644 tests/TestCase/Controller/PagesControllerTest.php diff --git a/tests/TestCase/Controller/PagesControllerTest.php b/tests/TestCase/Controller/PagesControllerTest.php deleted file mode 100644 index 6087df0d980..00000000000 --- a/tests/TestCase/Controller/PagesControllerTest.php +++ /dev/null @@ -1,76 +0,0 @@ -viewBuilder()->templatePath('Posts'); - $Pages->display('index'); - $this->assertRegExp('/posts index/', $Pages->response->body()); - $this->assertEquals('index', $Pages->viewVars['page']); - } - - /** - * Test that missing template renders 404 page in production - * - * @expectedException \Cake\Network\Exception\NotFoundException - * @expectedExceptionCode 404 - * @return void - */ - public function testMissingTemplate() - { - Configure::write('debug', false); - $Pages = new PagesController(new Request(), new Response()); - $Pages->display('non_existing_page'); - } - - /** - * Test that missing template in debug mode renders missing_template error page - * - * @expectedException \Cake\View\Exception\MissingTemplateException - * @expectedExceptionCode 500 - * @return void - */ - public function testMissingTemplateInDebug() - { - Configure::write('debug', true); - $Pages = new PagesController(new Request(), new Response()); - $Pages->display('non_existing_page'); - } -}