mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-01-11 17:18:40 +00:00
template fixes + bug fixes + style fixes
This commit is contained in:
parent
ae0cadd1f8
commit
c7e55cfb6b
|
|
@ -49,7 +49,7 @@ final class BackendController extends Controller
|
||||||
$view->setTemplate('/Modules/Marketing/Theme/Backend/promotion-list');
|
$view->setTemplate('/Modules/Marketing/Theme/Backend/promotion-list');
|
||||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1001902001, $request, $response);
|
$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;
|
$view->data['promotions'] = $promotions;
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ final class PromotionMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
#[\PHPUnit\Framework\Attributes\Group('module')]
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
public function testNewest() : void
|
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);
|
self::assertCount(1, $newest);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user