X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=application%2Ftests%2Fclass_ApplicationHelper.php;h=c8b407a5e251fdd9795050108959880ce7b8687f;hp=a827ed6ce8aec217cd694c982b750a030f27bd8c;hb=602a3281da3bcf4ab4da2d8571b921e61e167b5b;hpb=d26e71af1e28dc1429823bdec244df6303f9b2fb diff --git a/application/tests/class_ApplicationHelper.php b/application/tests/class_ApplicationHelper.php index a827ed6c..c8b407a5 100644 --- a/application/tests/class_ApplicationHelper.php +++ b/application/tests/class_ApplicationHelper.php @@ -153,8 +153,8 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica Registry::getRegistry()->addInstance('app', $this); // Default response is console - $response = $this->getResponseTypeFromSystem(); - $responseType = $this->getResponseTypeFromSystem(); + $response = self::getResponseTypeFromSystem(); + $responseType = self::getResponseTypeFromSystem(); // Create a new request object $requestInstance = ObjectFactory::createObjectByName($this->convertToClassName($response) . 'Request'); @@ -182,7 +182,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica // If it is null then get default command if (is_null($commandName)) { // Get default command - $commandName = $responseInstance->getDefaultCommand(); + $commandName = $responseInstance->determineDefaultCommand(); // Set it in request $requestInstance->setRequestElement('command', $commandName);