/**
* Test for FormDisplay::registerForm
*
* @return void
* @group medium
*/
public function testRegisterForm()
{
$reflection = new \ReflectionClass('PMA\\libraries\\config\\FormDisplay');
$attrForms = $reflection->getProperty('_forms');
$attrForms->setAccessible(true);
$array = array("Servers" => array("1" => array('test' => 1, 1 => ':group:end')));
$this->object->registerForm('pma_testform', $array, 2);
$_forms = $attrForms->getValue($this->object);
$this->assertInstanceOf('PMA\\libraries\\config\\Form', $_forms['pma_testform']);
$this->assertEquals(array("Servers/2/test" => "Servers/1/test", "Servers/2/:group:end:0" => "Servers/1/:group:end:0"), $this->readAttribute($this->object, '_systemPaths'));
$this->assertEquals(array("Servers/2/test" => "Servers-2-test", "Servers/2/:group:end:0" => "Servers-2-:group:end:0"), $this->readAttribute($this->object, '_translatedPaths'));
}