fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-25 19:59:41 +00:00
parent 27050229bd
commit 9538af3915
3 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;