Since: 3.0.0
Author: Henry Ruhs
Inheritance: extends ViewAbstract, implements ViewInterface
Example #1
0
 /**
  * testRender
  *
  * @since 3.0.0
  *
  * @param array $registryArray
  * @param integer $userId
  * @param array $expectArray
  *
  * @dataProvider providerRender
  */
 public function testRender($registryArray = [], $userId = null, $expectArray = [])
 {
     /* setup */
     $this->_registry->init($registryArray);
     $userForm = new Admin\View\UserForm($this->_registry, $this->_language);
     /* actual */
     $actual = $userForm->render($userId);
     /* compare */
     $this->assertStringStartsWith($expectArray['start'], $actual);
     $this->assertStringEndsWith($expectArray['end'], $actual);
 }