Neos\Flow\Tests\Unit\Mvc\Routing\DynamicRoutePartTest::resolveRecursivelyUnsetsCurrentRouteValueOnSuccessfulResolve PHP 메소드

resolveRecursivelyUnsetsCurrentRouteValueOnSuccessfulResolve() 공개 메소드

    public function resolveRecursivelyUnsetsCurrentRouteValueOnSuccessfulResolve()
    {
        $this->dynamicRoutPart->setName('foo.bar.baz');
        $routeValues = ['foo' => ['bar' => ['baz' => 'should be removed', 'otherKey' => 'should stay']], 'differentString' => 'value2'];
        $this->assertTrue($this->dynamicRoutPart->resolve($routeValues));
        $this->assertEquals(['foo' => ['bar' => ['otherKey' => 'should stay']], 'differentString' => 'value2'], $routeValues);
    }
DynamicRoutePartTest