Redaxscript\Tests\Router\ParameterTest::testGetThird PHP Method

testGetThird() public method

testGetThird
Since: 2.4.0
public testGetThird ( string $route = null, array $expectArray = [] )
$route string
$expectArray array
    public function testGetThird($route = null, $expectArray = [])
    {
        /* setup */
        $this->_request->setQuery('p', $route);
        $parameter = new Router\Parameter($this->_request);
        $parameter->init();
        /* actual */
        $actual = $parameter->getThird();
        /* compare */
        $this->assertEquals($expectArray['third'], $actual);
    }