render() public method

render the view
Since: 3.0.0
public render ( integer $categoryId = null ) : string
$categoryId integer identifier of the category
return string
 /**
  * testRender
  *
  * @since 3.0.0
  *
  * @param array $registryArray
  * @param integer $categoryId
  * @param array $expectArray
  *
  * @dataProvider providerRender
  */
 public function testRender($registryArray = [], $categoryId = null, $expectArray = [])
 {
     /* setup */
     $this->_registry->init($registryArray);
     $categoryForm = new Admin\View\CategoryForm($this->_registry, $this->_language);
     /* actual */
     $actual = $categoryForm->render($categoryId);
     /* compare */
     $this->assertStringStartsWith($expectArray['start'], $actual);
     $this->assertStringEndsWith($expectArray['end'], $actual);
 }