mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding tests for dispatcher to show periods not being removed. Refs #620
This commit is contained in:
parent
5f03862f25
commit
3e85577c1f
1 changed files with 5 additions and 0 deletions
|
@ -1366,6 +1366,11 @@ class DispatcherTest extends CakeTestCase {
|
|||
$url = 'test_dispatch_pages/camelCased';
|
||||
$controller = $Dispatcher->dispatch($url, array('return' => 1));
|
||||
$this->assertEqual('TestDispatchPages', $controller->name);
|
||||
|
||||
$url = 'test_dispatch_pages/camelCased/something. .';
|
||||
$controller = $Dispatcher->dispatch($url, array('return' => 1));
|
||||
$this->assertEqual($controller->params['pass'][0], 'something. .', 'Period was chopped off. %s');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue