/** * Tests hidden field type property setup by JFormField::setup method * * @covers JFormField::setup * @covers JFormField::__get * * @return void */ public function testSetupHiddenFieldType() { $field = new JFormFieldHidden(); $element = simplexml_load_string('<field name="myName" type="hidden" />'); $this->assertThat($field->setup($element, 42), $this->isTrue(), 'Line:' . __LINE__ . ' The setup method should return true if successful.'); $this->assertThat($field->hidden, $this->isTrue(), 'Line:' . __LINE__ . ' The hidden property should be set from the field type.'); }