Redaxscript\Tests\Controller\RegisterTest::testProcess PHP Method

testProcess() public method

testProcess
Since: 3.0.0
public testProcess ( array $postArray = [], array $hashArray = [], string $expect = null )
$postArray array
$hashArray array
$expect string
    public function testProcess($postArray = [], $hashArray = [], $expect = null)
    {
        /* setup */
        $this->_request->set('post', $postArray);
        $this->_request->setPost('solution', function_exists('password_verify') ? $hashArray[0] : $hashArray[1]);
        $registerController = new Controller\Register($this->_registry, $this->_language, $this->_request);
        /* actual */
        $actual = $registerController->process();
        /* compare */
        $this->assertEquals($expect, $actual);
    }