Fix namespace in unit tests

[MAILPOET-6216]
This commit is contained in:
Jan Lysý
2024-09-18 18:56:31 +02:00
committed by Jan Lysý
parent 246a10f058
commit 99a6541ffb
11 changed files with 14 additions and 16 deletions

View File

@ -9,7 +9,7 @@
},
"autoload-dev": {
"psr-4": {
"EmailEditor\\": "tests/unit/"
"MailPoet\\EmailEditor\\": "tests/unit/"
}
},
"require": {

View File

@ -1,7 +1,10 @@
<?php declare(strict_types = 1);
use MailPoet\EmailEditor\Container;
namespace MailPoet\EmailEditor;
use Exception;
use PHPUnit\Framework\TestCase;
use stdClass;
class ContainerTest extends TestCase {
public function testSetAndGetService(): void {

View File

@ -1,6 +1,6 @@
<?php declare(strict_types = 1);
namespace EmailEditor\Engine\Renderer\Postprocessors;
namespace MailPoet\EmailEditor\Engine\Renderer\Postprocessors;
use MailPoet\EmailEditor\Engine\Renderer\ContentRenderer\Postprocessors\HighlightingPostprocessor;

View File

@ -1,6 +1,6 @@
<?php declare(strict_types = 1);
namespace EmailEditor\Engine\Renderer\Postprocessors;
namespace MailPoet\EmailEditor\Engine\Renderer\Postprocessors;
use MailPoet\EmailEditor\Engine\Renderer\ContentRenderer\Postprocessors\VariablesPostprocessor;
use MailPoet\EmailEditor\Engine\ThemeController;

View File

@ -1,6 +1,6 @@
<?php declare(strict_types = 1);
namespace EmailEditor\Engine\Renderer\Preprocessors;
namespace MailPoet\EmailEditor\Engine\Renderer\Preprocessors;
use MailPoet\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors\BlocksWidthPreprocessor;

View File

@ -1,6 +1,6 @@
<?php declare(strict_types = 1);
namespace EmailEditor\Engine\Renderer\Preprocessors;
namespace MailPoet\EmailEditor\Engine\Renderer\Preprocessors;
use MailPoet\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors\CleanupPreprocessor;

View File

@ -1,6 +1,6 @@
<?php declare(strict_types = 1);
namespace EmailEditor\Engine\Renderer\Preprocessors;
namespace MailPoet\EmailEditor\Engine\Renderer\Preprocessors;
use MailPoet\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors\SpacingPreprocessor;

View File

@ -1,6 +1,6 @@
<?php declare(strict_types = 1);
namespace EmailEditor\Engine\Renderer\Preprocessors;
namespace MailPoet\EmailEditor\Engine\Renderer\Preprocessors;
use MailPoet\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors\TypographyPreprocessor;
use MailPoet\EmailEditor\Engine\SettingsController;

View File

@ -1,6 +1,6 @@
<?php declare(strict_types = 1);
namespace EmailEditor\Engine\Renderer;
namespace MailPoet\EmailEditor\Engine\Renderer;
use MailPoet\EmailEditor\Engine\Renderer\ContentRenderer\Postprocessors\HighlightingPostprocessor;
use MailPoet\EmailEditor\Engine\Renderer\ContentRenderer\Postprocessors\VariablesPostprocessor;

View File

@ -1,9 +1,6 @@
<?php declare(strict_types = 1);
namespace EmailEditor\Engine;
use MailPoet\EmailEditor\Engine\SettingsController;
use MailPoet\EmailEditor\Engine\ThemeController;
namespace MailPoet\EmailEditor\Engine;
class SettingsControllerTest extends \MailPoetUnitTest {
public function testItGetsCorrectLayoutWidthWithoutPadding(): void {

View File

@ -1,8 +1,6 @@
<?php declare(strict_types = 1);
namespace EmailEditor\Integrations\Utils;
use MailPoet\EmailEditor\Integrations\Utils\DomDocumentHelper;
namespace MailPoet\EmailEditor\Integrations\Utils;
class DomDocumentHelperTest extends \MailPoetUnitTest {
public function testItFindsElement(): void {