Fix PHPunit tests

This commit is contained in:
rugk
2019-01-21 23:49:33 +01:00
parent 7cb942aca3
commit 99d49a56ba
4 changed files with 20 additions and 0 deletions

View File

@@ -507,6 +507,7 @@ EOT;
$code .= PHP_EOL . <<<'EOT'
$this->_model->create(Helper::getPasteId(), Helper::getPaste());
$_SERVER['QUERY_STRING'] = Helper::getPasteId();
$_GET[Helper::getPasteId()] = '';
$_SERVER['HTTP_X_REQUESTED_WITH'] = 'JSONHttpRequest';
EOT;
break;