mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-15 15:28:42 +00:00
fix tests
This commit is contained in:
parent
a8409d0816
commit
f6ab2c95ea
|
|
@ -75,7 +75,6 @@ final class BackendController extends Controller
|
||||||
$view->setTemplate('/Modules/QA/Theme/Backend/qa-dashboard');
|
$view->setTemplate('/Modules/QA/Theme/Backend/qa-dashboard');
|
||||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1006001001, $request, $response);
|
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1006001001, $request, $response);
|
||||||
|
|
||||||
/** @var \Modules\QA\Models\QAQuestion[] $list */
|
|
||||||
$view->data['questions'] = QAQuestionMapper::getAll()
|
$view->data['questions'] = QAQuestionMapper::getAll()
|
||||||
->with('createdBy')
|
->with('createdBy')
|
||||||
->with('createdBy/account')
|
->with('createdBy/account')
|
||||||
|
|
@ -87,8 +86,8 @@ final class BackendController extends Controller
|
||||||
->with('tags/title')
|
->with('tags/title')
|
||||||
->where('tags/title/language', $response->header->l11n->language)
|
->where('tags/title/language', $response->header->l11n->language)
|
||||||
->where('language', $response->header->l11n->language)
|
->where('language', $response->header->l11n->language)
|
||||||
->limit(50)->executeGetArray();
|
->limit(50)
|
||||||
|
->executeGetArray();
|
||||||
|
|
||||||
$view->data['apps'] = QAAppMapper::getAll()
|
$view->data['apps'] = QAAppMapper::getAll()
|
||||||
->where('unit', [$this->app->unitId, null])
|
->where('unit', [$this->app->unitId, null])
|
||||||
|
|
@ -113,7 +112,6 @@ final class BackendController extends Controller
|
||||||
{
|
{
|
||||||
$view = new View($this->app->l11nManager, $request, $response);
|
$view = new View($this->app->l11nManager, $request, $response);
|
||||||
|
|
||||||
/** @var \Modules\QA\Models\QAQuestion $question */
|
|
||||||
$view->data['question'] = QAQuestionMapper::get()
|
$view->data['question'] = QAQuestionMapper::get()
|
||||||
->with('answers')
|
->with('answers')
|
||||||
->with('answers/createdBy')
|
->with('answers/createdBy')
|
||||||
|
|
@ -203,7 +201,6 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
$id = $request->getDataString('id') ?? '';
|
$id = $request->getDataString('id') ?? '';
|
||||||
|
|
||||||
/** @var \Model\Setting[] $settings */
|
|
||||||
$view->data['settings'] = SettingMapper::getAll()
|
$view->data['settings'] = SettingMapper::getAll()
|
||||||
->where('module', $id)
|
->where('module', $id)
|
||||||
->executeGetArray();
|
->executeGetArray();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user