File tree 2 files changed +7
-7
lines changed
TwigEngine/ControllerRender
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 14
14
use OxidEsales \EshopCommunity \Internal \Framework \Module \Install \Service \ModuleInstallerInterface ;
15
15
use OxidEsales \EshopCommunity \Internal \Framework \Module \Setup \Bridge \ModuleActivationBridgeInterface ;
16
16
use OxidEsales \EshopCommunity \Internal \Transition \Utility \BasicContextInterface ;
17
+ use OxidEsales \EshopCommunity \Tests \ContainerTrait ;
17
18
18
19
trait TestingFixturesTrait
19
20
{
21
+ use ContainerTrait;
22
+
20
23
private string $ fixtureRoot = __DIR__ ;
21
24
22
25
public function initFixtures (string $ fixtureRoot ): void
@@ -45,7 +48,10 @@ public function deactivateModuleFixture(string $moduleId): void
45
48
46
49
public function setShopSourceFixture (): void
47
50
{
48
- Registry::getConfig ()->setConfigParam ('sShopDir ' , "{$ this ->getFixturesDirectory ()}/shop/source/ " );
51
+ $ this ->createContainer ();
52
+ $ this ->container ->setParameter ('oxid_shop_source_directory ' , "{$ this ->getFixturesDirectory ()}/shop/source/ " );
53
+ $ this ->compileContainer ();
54
+ $ this ->attachContainerToContainerFactory ();
49
55
}
50
56
51
57
public function setThemeFixture (string $ themeId ): void
Original file line number Diff line number Diff line change 13
13
use OxidEsales \Eshop \Core \Registry ;
14
14
use OxidEsales \Eshop \Core \ShopControl ;
15
15
use OxidEsales \EshopCommunity \Internal \Container \ContainerFactory ;
16
- use OxidEsales \EshopCommunity \Internal \Transition \Utility \ContextInterface ;
17
16
use OxidEsales \Twig \Tests \Integration \TestingFixturesTrait ;
18
17
use PHPUnit \Framework \TestCase ;
19
18
use Prophecy \Argument ;
20
19
use Prophecy \PhpUnit \ProphecyTrait ;
21
20
use Psr \Log \LoggerInterface ;
22
21
23
- /** @runTestsInSeparateProcesses */
24
22
final class ModuleControllerRenderTest extends TestCase
25
23
{
26
24
use TestingFixturesTrait;
@@ -118,10 +116,6 @@ private function stubRequestData(): void
118
116
private function switchDebugMode (bool $ enable ): void
119
117
{
120
118
$ configFile = $ this ->prophesize (ConfigFile::class);
121
- $ configFile ->getVar ('sCompileDir ' )
122
- ->willReturn (
123
- $ this ->get (ContextInterface::class)->getCacheDirectory ()
124
- );
125
119
$ configFile ->getVar ('iDebug ' )->willReturn ($ enable );
126
120
Registry::set (ConfigFile::class, $ configFile ->reveal ());
127
121
}
You can’t perform that action at this time.
0 commit comments