mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Test Uri::param()
This commit is contained in:
parent
1a5abcbcbc
commit
b949b512e2
|
|
@ -182,6 +182,17 @@ class UriTest extends \Codeception\TestCase\Test
|
|||
$this->assertsame($uri->params('ueper'), null);
|
||||
}
|
||||
|
||||
public function testParam()
|
||||
{
|
||||
$uri = $this->getURI();
|
||||
|
||||
$uri->initializeWithURL('http://localhost:8080/grav/it/ueper:xxx')->init();
|
||||
$this->assertsame($uri->param('ueper'), 'xxx');
|
||||
$uri->initializeWithURL('http://localhost:8080/grav/it/ueper:xxx/test:yyy')->init();
|
||||
$this->assertsame($uri->param('ueper'), 'xxx');
|
||||
$this->assertsame($uri->param('test'), 'yyy');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user