С версии: 3.0.0
Автор: Henry Ruhs
Наследование: extends ViewAbstract, implements ViewInterface
Пример #1
0
 /**
  * testRender
  *
  * @since 3.0.0
  *
  * @param array $registryArray
  * @param integer $moduleId
  * @param array $expectArray
  *
  * @dataProvider providerRender
  */
 public function testRender($registryArray = [], $moduleId = null, $expectArray = [])
 {
     /* setup */
     $this->_registry->init($registryArray);
     $moduleForm = new Admin\View\ModuleForm($this->_registry, $this->_language);
     /* actual */
     $actual = $moduleForm->render($moduleId);
     /* compare */
     $this->assertStringStartsWith($expectArray['start'], $actual);
     $this->assertStringEndsWith($expectArray['end'], $actual);
 }