mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-05 19:08: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();
|
||||
$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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'شارات',
|
||||
'List' => 'قائمة',
|
||||
'Name' => 'اسم',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Odznaky',
|
||||
'List' => 'Seznam',
|
||||
'Name' => 'název',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Badges.',
|
||||
'List' => 'Liste',
|
||||
'Name' => 'Navn',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Abzeichen',
|
||||
'List' => 'Aufführen',
|
||||
'Name' => 'Name',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Κονδύλια',
|
||||
'List' => 'Λίστα',
|
||||
'Name' => 'Ονομα',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Insignias',
|
||||
'List' => 'Lista',
|
||||
'Name' => 'Nombre',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Merkit',
|
||||
'List' => 'Lista',
|
||||
'Name' => 'Nimi',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Badges',
|
||||
'List' => 'Lister',
|
||||
'Name' => 'Nom',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Jelvények',
|
||||
'List' => 'Lista',
|
||||
'Name' => 'Név',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Distintivi',
|
||||
'List' => 'Elenco',
|
||||
'Name' => 'Nome',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'バッジ',
|
||||
'List' => 'リスト',
|
||||
'Name' => '名前',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => '배지',
|
||||
'List' => '목록',
|
||||
'Name' => '이름',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Merker',
|
||||
'List' => 'Liste',
|
||||
'Name' => 'Navn',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Odznaki',
|
||||
'List' => 'Lista',
|
||||
'Name' => 'Nazwa',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Distintivos',
|
||||
'List' => 'Lista',
|
||||
'Name' => 'Nome',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Значки',
|
||||
'List' => 'Список',
|
||||
'Name' => 'Имя',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Märken',
|
||||
'List' => 'Lista',
|
||||
'Name' => 'namn',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'ป้าย',
|
||||
'List' => 'รายการ',
|
||||
'Name' => 'ชื่อ',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Rozetler',
|
||||
'List' => 'Liste',
|
||||
'Name' => 'İsim',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => 'Значки',
|
||||
'List' => 'Список',
|
||||
'Name' => 'Назва',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['QA' => [
|
||||
'All' => '#VALUE!',
|
||||
'All' => '',
|
||||
'Badges' => '徽章',
|
||||
'List' => '列表',
|
||||
'Name' => '名称',
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
$request->setData('name', 'TestQAApp');
|
||||
|
||||
$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]));
|
||||
|
||||
$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]));
|
||||
|
||||
$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');
|
||||
|
||||
$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');
|
||||
|
||||
$this->module->apiChangeQAQuestionVote($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
|
||||
$response = new HttpResponse();
|
||||
$request = new HttpRequest(new HttpUri(''));
|
||||
|
|
@ -271,7 +271,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
$request->setData('type', '1');
|
||||
|
||||
$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');
|
||||
|
||||
$this->module->apiChangeQAAnswerVote($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
|
||||
$response = new HttpResponse();
|
||||
$request = new HttpRequest(new HttpUri(''));
|
||||
|
|
@ -314,7 +314,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
$request->setData('type', '1');
|
||||
|
||||
$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