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