style: fix indentation, alignment, and docblock annotations
- Correct getChoices() docblock to reflect translated label => enum backing value order instead of value => label - Re-indent Smart Links menu config to match actual array nesting - Align assignment operators in RefreshStatsCommand - Add missing newline at end of RefreshStatsCommand.php
This commit is contained in:
1 parent
07773acb8d
commit
b138056e43
90 files changed
+622
-272
No files matched your search
@@ -14,7 +14,6 @@ use MauticPlugin\MT3SMarketingProgramBundle\Catalog\UtmParameterMode;
|
||||
use MauticPlugin\MT3SMarketingProgramBundle\Model\SmartLinkModel;
|
||||
use MauticPlugin\MT3SMarketingProgramBundle\Service\UtmConfigurationNormalizer;
|
||||
use MauticPlugin\MT3SMarketingProgramBundle\Service\UtmConfigurationProvider;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
@@ -26,6 +25,8 @@ final class SmartLinkModelTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A real provider with the given raw configuration, served through the normalizer.
|
||||
*
|
||||
* @param array<string, mixed> $raw
|
||||
*/
|
||||
private function createProvider(array $raw): UtmConfigurationProvider
|
||||
{
|
||||
@@ -47,6 +48,8 @@ final class SmartLinkModelTest extends TestCase
|
||||
|
||||
/**
|
||||
* The model with mocked core dependencies; the UTM configuration is real.
|
||||
*
|
||||
* @param array<string, mixed> $raw
|
||||
*/
|
||||
private function createModel(array $raw, ?PageModel $pageModel = null, ?UrlGeneratorInterface $router = null): SmartLinkModel
|
||||
{
|
||||
@@ -207,7 +210,7 @@ final class SmartLinkModelTest extends TestCase
|
||||
$pageModel = $this->createMock(PageModel::class);
|
||||
$pageModel->method('generateUrl')->willReturn('https://mautic.example.com/landing');
|
||||
|
||||
$link = new \MauticPlugin\MT3SMarketingProgramBundle\Entity\SmartLink();
|
||||
$link = new \MauticPlugin\MT3SMarketingProgramBundle\Entity\SmartLink();
|
||||
$reflection = new \ReflectionClass(\MauticPlugin\MT3SMarketingProgramBundle\Entity\SmartLink::class);
|
||||
$reflection->getProperty('page')->setValue($link, $this->createMock(\Mautic\PageBundle\Entity\Page::class));
|
||||
|
||||
@@ -224,7 +227,7 @@ final class SmartLinkModelTest extends TestCase
|
||||
$form = $this->createMock(\Mautic\FormBundle\Entity\Form::class);
|
||||
$form->method('getId')->willReturn(7);
|
||||
|
||||
$link = new \MauticPlugin\MT3SMarketingProgramBundle\Entity\SmartLink();
|
||||
$link = new \MauticPlugin\MT3SMarketingProgramBundle\Entity\SmartLink();
|
||||
$reflection = new \ReflectionClass(\MauticPlugin\MT3SMarketingProgramBundle\Entity\SmartLink::class);
|
||||
$reflection->getProperty('form')->setValue($link, $form);
|
||||
|
||||
|
||||
Reference in new issue
Block a user