/** * 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); }