3use PHPUnit\Framework\TestCase;
16 protected function getRequest(array $get, array
$post): \
ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest
18 $http_mock = $this->createMock(
ILIAS\HTTP\Services::class);
19 $lng_mock = $this->createMock(ilLanguage::class);
20 $data = new \ILIAS\Data\Factory();
22 return new \ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest(
56 $request->getQuestionId()
67 "q_id" => [
"13",
"15",
"19"]
73 $request->getQuestionIds()
88 $request->getPreview()
96 "sel_question_types" =>
"Metric"
103 $request->getSelectedQuestionTypes()
143 $request->getPhraseId()
154 "phrase" => [
"13",
"15",
"19"]
160 $request->getPhraseIds()
Test editing request class.
testSelectedQuestionTypes()
getRequest(array $get, array $post)
Refinery Factory $refinery
Class ChatMainBarProvider \MainMenu\Provider.