mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-16 15:58:41 +00:00
update
This commit is contained in:
parent
eeebc22b6d
commit
178b21c952
|
|
@ -159,7 +159,7 @@ final class ApiController extends Controller
|
||||||
$internalResponse = new HttpResponse();
|
$internalResponse = new HttpResponse();
|
||||||
$this->app->moduleManager->get('Tag')->apiTagCreate($request, $internalResponse);
|
$this->app->moduleManager->get('Tag')->apiTagCreate($request, $internalResponse);
|
||||||
|
|
||||||
if (!\is_array($data = $internalResponse->get($request->uri->__toString()))) {
|
if (!\is_array($data = $internalResponse->getDataArray($request->uri->__toString()))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'شارات',
|
'Badges' => 'شارات',
|
||||||
'List' => 'قائمة',
|
'List' => 'قائمة',
|
||||||
'Name' => 'اسم',
|
'Name' => 'اسم',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Odznaky',
|
'Badges' => 'Odznaky',
|
||||||
'List' => 'Seznam',
|
'List' => 'Seznam',
|
||||||
'Name' => 'název',
|
'Name' => 'název',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Badges.',
|
'Badges' => 'Badges.',
|
||||||
'List' => 'Liste',
|
'List' => 'Liste',
|
||||||
'Name' => 'Navn',
|
'Name' => 'Navn',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Abzeichen',
|
'Badges' => 'Abzeichen',
|
||||||
'List' => 'Aufführen',
|
'List' => 'Aufführen',
|
||||||
'Name' => 'Name',
|
'Name' => 'Name',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Κονδύλια',
|
'Badges' => 'Κονδύλια',
|
||||||
'List' => 'Λίστα',
|
'List' => 'Λίστα',
|
||||||
'Name' => 'Ονομα',
|
'Name' => 'Ονομα',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Insignias',
|
'Badges' => 'Insignias',
|
||||||
'List' => 'Lista',
|
'List' => 'Lista',
|
||||||
'Name' => 'Nombre',
|
'Name' => 'Nombre',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Merkit',
|
'Badges' => 'Merkit',
|
||||||
'List' => 'Lista',
|
'List' => 'Lista',
|
||||||
'Name' => 'Nimi',
|
'Name' => 'Nimi',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Badges',
|
'Badges' => 'Badges',
|
||||||
'List' => 'Lister',
|
'List' => 'Lister',
|
||||||
'Name' => 'Nom',
|
'Name' => 'Nom',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Jelvények',
|
'Badges' => 'Jelvények',
|
||||||
'List' => 'Lista',
|
'List' => 'Lista',
|
||||||
'Name' => 'Név',
|
'Name' => 'Név',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Distintivi',
|
'Badges' => 'Distintivi',
|
||||||
'List' => 'Elenco',
|
'List' => 'Elenco',
|
||||||
'Name' => 'Nome',
|
'Name' => 'Nome',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'バッジ',
|
'Badges' => 'バッジ',
|
||||||
'List' => 'リスト',
|
'List' => 'リスト',
|
||||||
'Name' => '名前',
|
'Name' => '名前',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => '배지',
|
'Badges' => '배지',
|
||||||
'List' => '목록',
|
'List' => '목록',
|
||||||
'Name' => '이름',
|
'Name' => '이름',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Merker',
|
'Badges' => 'Merker',
|
||||||
'List' => 'Liste',
|
'List' => 'Liste',
|
||||||
'Name' => 'Navn',
|
'Name' => 'Navn',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Odznaki',
|
'Badges' => 'Odznaki',
|
||||||
'List' => 'Lista',
|
'List' => 'Lista',
|
||||||
'Name' => 'Nazwa',
|
'Name' => 'Nazwa',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Distintivos',
|
'Badges' => 'Distintivos',
|
||||||
'List' => 'Lista',
|
'List' => 'Lista',
|
||||||
'Name' => 'Nome',
|
'Name' => 'Nome',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Значки',
|
'Badges' => 'Значки',
|
||||||
'List' => 'Список',
|
'List' => 'Список',
|
||||||
'Name' => 'Имя',
|
'Name' => 'Имя',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Märken',
|
'Badges' => 'Märken',
|
||||||
'List' => 'Lista',
|
'List' => 'Lista',
|
||||||
'Name' => 'namn',
|
'Name' => 'namn',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'ป้าย',
|
'Badges' => 'ป้าย',
|
||||||
'List' => 'รายการ',
|
'List' => 'รายการ',
|
||||||
'Name' => 'ชื่อ',
|
'Name' => 'ชื่อ',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Rozetler',
|
'Badges' => 'Rozetler',
|
||||||
'List' => 'Liste',
|
'List' => 'Liste',
|
||||||
'Name' => 'İsim',
|
'Name' => 'İsim',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => 'Значки',
|
'Badges' => 'Значки',
|
||||||
'List' => 'Список',
|
'List' => 'Список',
|
||||||
'Name' => 'Назва',
|
'Name' => 'Назва',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['QA' => [
|
return ['QA' => [
|
||||||
'All' => '#VALUE!',
|
'All' => '',
|
||||||
'Badges' => '徽章',
|
'Badges' => '徽章',
|
||||||
'List' => '列表',
|
'List' => '列表',
|
||||||
'Name' => '名称',
|
'Name' => '名称',
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('name', 'TestQAApp');
|
$request->setData('name', 'TestQAApp');
|
||||||
|
|
||||||
$this->module->apiQAAppCreate($request, $response);
|
$this->module->apiQAAppCreate($request, $response);
|
||||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -161,7 +161,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('media', \json_encode([1]));
|
$request->setData('media', \json_encode([1]));
|
||||||
|
|
||||||
$this->module->apiQAQuestionCreate($request, $response);
|
$this->module->apiQAQuestionCreate($request, $response);
|
||||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -211,7 +211,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('media', \json_encode([1]));
|
$request->setData('media', \json_encode([1]));
|
||||||
|
|
||||||
$this->module->apiQAAnswerCreate($request, $response);
|
$this->module->apiQAAnswerCreate($request, $response);
|
||||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -228,7 +228,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('accepted', '1');
|
$request->setData('accepted', '1');
|
||||||
|
|
||||||
$this->module->apiChangeAnsweredStatus($request, $response);
|
$this->module->apiChangeAnsweredStatus($request, $response);
|
||||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -261,7 +261,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('type', '-1');
|
$request->setData('type', '-1');
|
||||||
|
|
||||||
$this->module->apiChangeQAQuestionVote($request, $response);
|
$this->module->apiChangeQAQuestionVote($request, $response);
|
||||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
|
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
$request = new HttpRequest(new HttpUri(''));
|
$request = new HttpRequest(new HttpUri(''));
|
||||||
|
|
@ -271,7 +271,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('type', '1');
|
$request->setData('type', '1');
|
||||||
|
|
||||||
$this->module->apiChangeQAQuestionVote($request, $response);
|
$this->module->apiChangeQAQuestionVote($request, $response);
|
||||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -304,7 +304,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('type', '-1');
|
$request->setData('type', '-1');
|
||||||
|
|
||||||
$this->module->apiChangeQAAnswerVote($request, $response);
|
$this->module->apiChangeQAAnswerVote($request, $response);
|
||||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
|
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
$request = new HttpRequest(new HttpUri(''));
|
$request = new HttpRequest(new HttpUri(''));
|
||||||
|
|
@ -314,7 +314,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('type', '1');
|
$request->setData('type', '1');
|
||||||
|
|
||||||
$this->module->apiChangeQAAnswerVote($request, $response);
|
$this->module->apiChangeQAAnswerVote($request, $response);
|
||||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user