Skip to content

Commit

Permalink
OXDEV-8462 Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
TitaKoleva committed Jul 15, 2024
1 parent fc9523c commit 81522ca
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
2 changes: 0 additions & 2 deletions services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ services:
_defaults:
public: false
autowire: true
bind:
OxidEsales\Eshop\Core\Request: '@=service("OxidEsales\\ModuleTemplate\\Core\\Registry").getRequest()'

OxidEsales\ModuleTemplate\Core\Registry:
class: OxidEsales\Eshop\Core\Registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
use OxidEsales\Eshop\Application\Model\User as EshopModelUser;
use OxidEsales\ModuleTemplate\Controller\Admin\GreetingAdminController;
use OxidEsales\ModuleTemplate\Core\Module as ModuleCore;
use OxidEsales\ModuleTemplate\Model\GreetingTracker;
use OxidEsales\ModuleTemplate\Model\User as ModuleUser;
use OxidEsales\ModuleTemplate\Service\ModuleSettings;
use OxidEsales\ModuleTemplate\Service\Repository;
use OxidEsales\ModuleTemplate\Tests\Integration\IntegrationTestCase;
use OxidEsales\ModuleTemplate\Traits\ServiceContainer;

Expand All @@ -31,8 +27,6 @@ final class GreetingAdminControllerTest extends IntegrationTestCase

public const TEST_GREETING = 'Hello there!';

public const TEST_GREETING_UPDATED = 'shopping addict';

public function testRender(): void
{
$this->createTestUser();
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Infrastructure/CoreRequestFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class CoreRequestFactoryTest extends TestCase
{
public function testCreateProducesCorrectTypeOfObjects(): void
{
$coreThemeFactoryMock = $this->getMockBuilder(CoreRequestFactory::class)
$coreRequestFactoryMock = $this->getMockBuilder(CoreRequestFactory::class)
->onlyMethods(['create'])
->getMock();

$this->assertInstanceOf(Request::class, $coreThemeFactoryMock->create());
$this->assertInstanceOf(Request::class, $coreRequestFactoryMock->create());
}
}
1 change: 0 additions & 1 deletion tests/Unit/Service/GreetingMessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace OxidEsales\ModuleTemplate\Tests\Unit\Service;

use OxidEsales\Eshop\Core\Request as CoreRequest;
use OxidEsales\ModuleTemplate\Core\Module as ModuleCore;
use OxidEsales\ModuleTemplate\Infrastructure\CoreRequestFactoryInterface;
use OxidEsales\ModuleTemplate\Service\GreetingMessage;
Expand Down

0 comments on commit 81522ca

Please sign in to comment.