process() public method

process the class
Since: 3.0.0
public process ( ) : string
return string
Example #1
0
 /**
  * testProcess
  *
  * @since 3.0.0
  *
  * @param array $postArray
  * @param array $hashArray
  * @param array $settingArray
  * @param string $expect
  *
  * @dataProvider providerProcess
  */
 public function testProcess($postArray = [], $hashArray = [], $settingArray = [], $expect = null)
 {
     /* setup */
     Db::setSetting('notification', $settingArray['notification']);
     Db::setSetting('moderation', $settingArray['moderation']);
     $this->_request->set('post', $postArray);
     $this->_request->setPost('solution', function_exists('password_verify') ? $hashArray[0] : $hashArray[1]);
     $commentController = new Controller\Comment($this->_registry, $this->_language, $this->_request);
     /* actual */
     $actual = $commentController->process();
     /* compare */
     $this->assertEquals($expect, $actual);
 }