Inheritance: extends Zend\Form\View\Helper\FormCheckbox
コード例 #1
0
ファイル: CdnBackendTest.php プロジェクト: gotcms/gotcms
 /**
  * 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'));
 }
コード例 #2
0
ファイル: FormCheckboxTest.php プロジェクト: gotcms/gotcms
 /**
  * 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);
 }