public function testGetRootLocation()
{
$rootLocationId = 2;
$this->configResolver->expects($this->once())->method('getParameter')->with('content.tree_root.location_id')->will($this->returnValue($rootLocationId));
$rootLocation = $this->getMockBuilder('eZ\\Publish\\API\\Repository\\Values\\Content\\Location')->setConstructorArgs(array(array('id' => $rootLocationId)));
$this->locationService->expects($this->once())->method('loadLocation')->with($rootLocationId)->will($this->returnValue($rootLocation));
$this->assertSame($rootLocation, $this->helper->getRootLocation());
}