template fixes + bug fixes + style fixes

This commit is contained in:
Dennis Eichhorn 2024-04-02 21:40:47 +00:00
parent ae0cadd1f8
commit c7e55cfb6b
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/Marketing/Theme/Backend/promotion-list');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1001902001, $request, $response);
$promotions = PromotionMapper::getAll()->limit(25)->execute();
$promotions = PromotionMapper::getAll()->limit(25)->executeGetArray();
$view->data['promotions'] = $promotions;
return $view;

View File

@ -100,7 +100,7 @@ final class PromotionMapperTest extends \PHPUnit\Framework\TestCase
#[\PHPUnit\Framework\Attributes\Group('module')]
public function testNewest() : void
{
$newest = PromotionMapper::getAll()->sort('id', OrderType::DESC)->limit(1)->execute();
$newest = PromotionMapper::getAll()->sort('id', OrderType::DESC)->limit(1)->executeGetArray();
self::assertCount(1, $newest);
}