Inheritance: extends Zend\Form\View\Helper\FormCheckbox
Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testInvokeUnsecure()
 {
     $coreConfig = Registry::get('Application')->getServiceManager()->get('CoreConfig');
     $basePath = $coreConfig->setValue('force_backend_ssl', 0);
     $basePath = $coreConfig->setValue('unsecure_cdn_base_path', 'http://got-cms.com');
     $this->assertEquals('http://got-cms.com/test', $this->object->__invoke('test'));
 }
Beispiel #2
0
 /**
  * Test
  *
  * @return void
  */
 public function testRenderWithClass()
 {
     $this->element->setValue('checked');
     $this->element->setAttribute('class', 'input-checkbox');
     $markup = $this->object->render($this->element);
     $this->assertContains('checked="checked"', $markup);
     $this->assertContains('class="input-checkbox"', $markup);
 }