From 34eb47b5c8c26883bf6755384c701e7fae7aedec Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 8 Oct 2013 22:45:35 -0700 Subject: [PATCH] Issue #2093497 by dawehner: Convert ExceptionControllerTest to a phpunit test. --- .../Controller}/ExceptionControllerTest.php | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) rename core/{modules/system/lib/Drupal/system/Tests/System => tests/Drupal/Tests/Core/Controller}/ExceptionControllerTest.php (53%) diff --git a/core/modules/system/lib/Drupal/system/Tests/System/ExceptionControllerTest.php b/core/tests/Drupal/Tests/Core/Controller/ExceptionControllerTest.php similarity index 53% rename from core/modules/system/lib/Drupal/system/Tests/System/ExceptionControllerTest.php rename to core/tests/Drupal/Tests/Core/Controller/ExceptionControllerTest.php index 939432d16c81..020daab9866d 100644 --- a/core/modules/system/lib/Drupal/system/Tests/System/ExceptionControllerTest.php +++ b/core/tests/Drupal/Tests/Core/Controller/ExceptionControllerTest.php @@ -1,21 +1,26 @@ execute($flat_exception, new Request()); - $this->assertEqual($response->getStatusCode(), 405, 'HTTP status of response is correct.'); - $this->assertEqual($response->getContent(), 'Method Not Allowed', 'HTTP response body is correct.'); + $this->assertEquals($response->getStatusCode(), 405, 'HTTP status of response is correct.'); + $this->assertEquals($response->getContent(), 'Method Not Allowed', 'HTTP response body is correct.'); } + }