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

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

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