mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-14 14:58:41 +00:00
fix tests
This commit is contained in:
parent
27050229bd
commit
9538af3915
|
|
@ -79,7 +79,7 @@ final class Autoloader
|
||||||
$class = \strtr($class, '_\\', '//');
|
$class = \strtr($class, '_\\', '//');
|
||||||
|
|
||||||
if (\stripos($class, 'Web/Backend')) {
|
if (\stripos($class, 'Web/Backend')) {
|
||||||
$class = \str_replace('Web', 'Install/Application', $class);
|
$class = \str_replace('Web/', 'Install/Application/', $class);
|
||||||
}
|
}
|
||||||
|
|
||||||
$class2 = $class;
|
$class2 = $class;
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ final class QAAnswerVoteMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
public function testCRUD() : void
|
public function testCRUD() : void
|
||||||
{
|
{
|
||||||
|
\Modules\Admin\tests\Helper::createAccounts(1);
|
||||||
|
|
||||||
$vote = new QAAnswerVote();
|
$vote = new QAAnswerVote();
|
||||||
$vote->answer = 1;
|
$vote->answer = 1;
|
||||||
$vote->score = 1;
|
$vote->score = 1;
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ final class QAQuestionVoteMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
public function testCRUD() : void
|
public function testCRUD() : void
|
||||||
{
|
{
|
||||||
|
\Modules\Admin\tests\Helper::createAccounts(1);
|
||||||
|
|
||||||
$vote = new QAQuestionVote();
|
$vote = new QAQuestionVote();
|
||||||
$vote->question = 1;
|
$vote->question = 1;
|
||||||
$vote->score = 1;
|
$vote->score = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user