Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Tkachev committed Feb 18, 2025
1 parent 6e508b8 commit f0a6167
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,19 @@ jobs:
make up
sleep 2
- name: Install dependencies and reset shop
run: |
docker compose exec -T php composer update --no-interaction
docker compose exec -T php bin/oe-console oe:database:reset \
--db-host=mysql --db-port=3306 --db-name=example --db-user=root --db-password=root --force
- name: Put module settings
continue-on-error: true
run: |
mkdir -p source/var/configuration/environment/shops/1/modules
echo "${{ secrets.MODULE_SETTINGS_OXID7 }}" > source/var/configuration/environment/shops/1/modules/osc-unzer.yaml
docker compose exec -T php php bin/oe-console oe:module:activate osc-unzer
- name: Run tests
run: |
docker compose exec -T \
Expand Down Expand Up @@ -392,7 +405,6 @@ jobs:
- name: Activate theme
run: |
docker compose exec -T php bin/oe-console oe:theme:activate apex
docker compose exec -T php bin/oe-console oe:module:activate osc-unzer
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Service/ModuleSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ protected function tearDown(): void
$moduleSettingService->saveInteger('UnzerSystemMode', 0, Module::MODULE_ID);

// Clear all production-related fields
$productionFields = array_filter($this->settingsToBackup, function($setting) {
$productionFields = array_filter($this->settingsToBackup, function ($setting) {
return str_starts_with($setting, 'production-');
});

Expand Down

0 comments on commit f0a6167

Please sign in to comment.