eZ\Bundle\EzPublishCoreBundle\Tests\ConfigResolverTest::testGetParameterGlobalScope PHP Method

testGetParameterGlobalScope() public method

public testGetParameterGlobalScope ( $paramName, $expectedValue )
    public function testGetParameterGlobalScope($paramName, $expectedValue)
    {
        $globalScopeParameter = "ezsettings.global.{$paramName}";
        $this->containerMock->expects($this->once())->method('hasParameter')->with($globalScopeParameter)->will($this->returnValue(true));
        $this->containerMock->expects($this->once())->method('getParameter')->with($globalScopeParameter)->will($this->returnValue($expectedValue));
        $this->assertSame($expectedValue, $this->getResolver()->getParameter($paramName));
    }