/** * Method to test getFieldName(). * * @return void * * @covers Windwalker\Form\Field\AbstractField::getFieldName */ public function testGetFieldName() { $this->instance->setControl('windwalker'); $this->assertEquals('windwalker[flower]', $this->instance->getFieldName()); $this->instance->setGroup('foo.bar'); $this->instance->setName('yoo'); $this->assertEquals('windwalker[foo][bar][yoo]', $this->instance->getFieldName(true)); }