/** * testRender * * @since 3.0.0 * * @param string $table * @param array $expectArray * * @dataProvider providerRender */ public function testRender($table = null, $expectArray = []) { /* setup */ $searchForm = new View\SearchForm($this->_registry, $this->_language); /* actual */ $actual = $searchForm->render($table); /* compare */ $this->assertStringStartsWith($expectArray['start'], $actual); $this->assertStringEndsWith($expectArray['end'], $actual); }
/** * search form * * @since 3.0.0 * * @param string $table * * @return string */ public static function searchForm($table = null) { $searchForm = new View\SearchForm(Registry::getInstance(), Language::getInstance()); return $searchForm->render($table); }