From 46ae6901fe4cd881f4382c51833505dc54a19308 Mon Sep 17 00:00:00 2001 From: Mark Scherer Date: Mon, 12 Jan 2015 16:23:43 +0100 Subject: [PATCH] Use notice free test. --- src/TestSuite/IntegrationTestCase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TestSuite/IntegrationTestCase.php b/src/TestSuite/IntegrationTestCase.php index 90cfc03673f..5b4d58e5c50 100644 --- a/src/TestSuite/IntegrationTestCase.php +++ b/src/TestSuite/IntegrationTestCase.php @@ -454,7 +454,8 @@ public function assertRedirect($url = null, $message = '') } $result = $this->_response->header(); if ($url === null) { - return $this->assertNotEmpty($result['Location']); + $this->assertTrue(!empty($result['Location']), $message); + return; } if (empty($result['Location'])) { $this->fail('No location header set. ' . $message);