Skip to content

Commit bea7a57

Browse files
committed
OXDEV-8623 Have codeception module handle module activation
1 parent 8c1c9bb commit bea7a57

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

tests/Codeception/Acceptance.suite.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ modules:
3535
- \OxidEsales\GraphQL\Base\Tests\Codeception\Module\AcceptanceHelper:
3636
depends:
3737
- REST
38+
- \OxidEsales\Codeception\Module\OxideshopModules

tests/Codeception/Module/AcceptanceHelper.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Lcobucci\JWT\Token;
1919
use Lcobucci\JWT\Token\Parser;
2020
use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory;
21-
use OxidEsales\Facts\Facts;
2221
use OxidEsales\GraphQL\Base\Service\JwtConfigurationBuilder;
2322
use PHPUnit\Framework\AssertionFailedError;
2423
use Symfony\Component\BrowserKit\CookieJar;
@@ -46,25 +45,6 @@ public function getRest(): REST
4645
return $this->rest;
4746
}
4847

49-
public function _beforeSuite($settings = []): void // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
50-
{
51-
$rootPath = (new Facts())->getShopRootPath();
52-
$possiblePaths = [
53-
'/bin/oe-console',
54-
'/vendor/bin/oe-console',
55-
];
56-
57-
foreach ($possiblePaths as $path) {
58-
if (is_file($rootPath . $path)) {
59-
exec($rootPath . $path . ' oe:module:activate oe_graphql_base');
60-
61-
return;
62-
}
63-
}
64-
65-
throw new Exception('Could not find script "/bin/oe-console" to activate module');
66-
}
67-
6848
public function sendGQLQuery(
6949
string $query,
7050
?array $variables = null,

0 commit comments

Comments
 (0)