Redaxscript\Tests\Admin\View\ModuleFormTest::testRender PHP Method

testRender() public method

testRender
Since: 3.0.0
public testRender ( array $registryArray = [], integer $moduleId = null, array $expectArray = [] )
$registryArray array
$moduleId integer
$expectArray array
    public function testRender($registryArray = [], $moduleId = null, $expectArray = [])
    {
        /* setup */
        $this->_registry->init($registryArray);
        $moduleForm = new Admin\View\ModuleForm($this->_registry, $this->_language);
        /* actual */
        $actual = $moduleForm->render($moduleId);
        /* compare */
        $this->assertStringStartsWith($expectArray['start'], $actual);
        $this->assertStringEndsWith($expectArray['end'], $actual);
    }