Redaxscript\Tests\View\SearchFormTest::testRender PHP Метод

testRender() публичный Метод

testRender
С версии: 3.0.0
public testRender ( string $table = null, array $expectArray = [] )
$table string
$expectArray array
    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);
    }