diff --git a/tests/TestCase/Routing/Route/RedirectRouteTest.php b/tests/TestCase/Routing/Route/RedirectRouteTest.php index aa638a7211d..cd13aa551c9 100644 --- a/tests/TestCase/Routing/Route/RedirectRouteTest.php +++ b/tests/TestCase/Routing/Route/RedirectRouteTest.php @@ -246,7 +246,7 @@ public function testSetStatus() { $route = new RedirectRoute('/home', ['controller' => 'posts']); $result = $route->setStatus(302); - $this->assertSame($result, $route, 'Should return this'); + $this->assertSame($result, $route); $this->assertEquals(302, $route->options['status']); } }