mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding tests that show that Router is not chopping off periods from passed arguments. Refs #620
This commit is contained in:
parent
70b3225ff0
commit
0800483407
1 changed files with 14 additions and 0 deletions
|
@ -1558,6 +1558,20 @@ class RouterTest extends CakeTestCase {
|
|||
$this->assertEqual($result, $expected);
|
||||
}
|
||||
|
||||
/**
|
||||
* test that requests with a trailing dot don't loose the do.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function testParsingWithTrailingPeriod() {
|
||||
Router::reload();
|
||||
$result = Router::parse('/posts/view/something.');
|
||||
$this->assertEqual($result['pass'][0], 'something.', 'Period was chopped off %s');
|
||||
|
||||
$result = Router::parse('/posts/view/something. . .');
|
||||
$this->assertEqual($result['pass'][0], 'something. . .', 'Period was chopped off %s');
|
||||
}
|
||||
|
||||
/**
|
||||
* testParsingWithPrefixes method
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue