Пример #1
0
 /**
  * Test for Form::removeGroup method.
  *
  * @return void
  */
 public function testRemoveGroup()
 {
     $form = new JFormInspector('form1');
     $this->assertThat($form->load(JFormDataHelper::$loadDocument), $this->isTrue(), 'Line:' . __LINE__ . ' XML string should load successfully.');
     $this->assertThat($form->removeGroup('params'), $this->isTrue(), 'Line:' . __LINE__ . ' The removeGroup method should return true.');
     $this->assertThat($form->findGroup('params'), $this->equalTo(array()), 'Line:' . __LINE__ . ' The group should be removed, returning an empty array.');
 }