Since: 3.0.0
Author: Henry Ruhs
Author: Balázs Szilágyi
Inheritance: extends ControllerAbstract
Example #1
0
 /**
  * testProcess
  *
  * @since 3.0.0
  *
  * @param array $postArray
  * @param array $hashArray
  * @param string $expect
  *
  * @dataProvider providerProcess
  */
 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);
 }