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

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

testRender
С версии: 3.0.0
public testRender ( string $articleId = null, array $expectArray = [] )
$articleId string
$expectArray array
    public function testRender($articleId = null, $expectArray = [])
    {
        /* setup */
        $commentForm = new View\CommentForm($this->_registry, $this->_language);
        /* actual */
        $actual = $commentForm->render($articleId);
        /* compare */
        $this->assertStringStartsWith($expectArray['start'], $actual);
        $this->assertStringEndsWith($expectArray['end'], $actual);
    }