Since: 3.0.0
Author: Henry Ruhs
Inheritance: extends ViewAbstract
Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * 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);
 }