Skip to content

Commit daa1b7c

Browse files
committed
fix: incorrect test
The second call for add `exampleRoute` would be ignored.
1 parent 596b2e9 commit daa1b7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/system/HTTP/RedirectResponseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ public function testRedirectRoute()
7373
$this->assertTrue($response->hasHeader('Location'));
7474
$this->assertSame('http://example.com/index.php/exampleRoute', $response->getHeaderLine('Location'));
7575

76-
$this->routes->add('exampleRoute', 'Home::index', ['as' => 'home']);
76+
$this->routes->add('exampleRoute2', 'Home::index', ['as' => 'home']);
7777

7878
$response->route('home');
7979

8080
$this->assertTrue($response->hasHeader('Location'));
81-
$this->assertSame('http://example.com/index.php/exampleRoute', $response->getHeaderLine('Location'));
81+
$this->assertSame('http://example.com/index.php/exampleRoute2', $response->getHeaderLine('Location'));
8282
}
8383

8484
public function testRedirectRouteBadNamedRoute()

0 commit comments

Comments
 (0)