Skip to content

Commit 671754e

Browse files
committed
feat: add tests for copy from vendor functionality in workflows
1 parent 9c65f09 commit 671754e

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

.github/workflows/functional-tests.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ jobs:
126126
bin/magento mageforge:hyva:compatibility:check --show-all
127127
128128
echo "Third party only:"
129-
bin/magento m:h:c:c --third-party-only
129+
bin/magento mageforge:hyva:compatibility:check --third-party-only
130130
131131
echo "Detailed output:"
132-
bin/magento m:h:c:c --show-all --detailed
132+
bin/magento mageforge:hyva:compatibility:check --show-all --detailed
133133
134134
- name: Test Theme Cleaner
135135
working-directory: magento2
@@ -139,7 +139,6 @@ jobs:
139139
bin/magento mageforge:theme:clean --all --dry-run
140140
141141
echo "Test aliases:"
142-
bin/magento m:t:c --help
143142
bin/magento frontend:clean --help
144143
145144
- name: Test Theme Name Suggestions
@@ -155,6 +154,20 @@ jobs:
155154
echo "CleanCommand with invalid name:"
156155
bin/magento mageforge:theme:clean Magent/lum --dry-run || echo "Expected failure - suggestions shown"
157156
157+
- name: Test Copy From Vendor
158+
working-directory: magento2
159+
run: |
160+
echo "=== Copy From Vendor Tests ==="
161+
162+
echo "Test help command:"
163+
bin/magento mageforge:theme:copy-from-vendor --help
164+
165+
echo "Test with dry-run (no actual copying):"
166+
bin/magento mageforge:theme:copy-from-vendor Magento/blank hyva-themes/magento2-default-theme::src/etc/view.xml --dry-run || echo "Expected: may fail if file doesn't exist"
167+
168+
echo "Test aliases:"
169+
bin/magento theme:copy --help
170+
158171
- name: Test Inspector Status
159172
working-directory: magento2
160173
run: |
@@ -496,7 +509,6 @@ jobs:
496509
bin/magento mageforge:theme:build Magento/blank --verbose || echo "Build attempted (may need additional setup)"
497510
498511
echo "Test build aliases:"
499-
bin/magento m:t:b --help
500512
bin/magento frontend:build --help
501513
502514
- name: Test Summary

.github/workflows/magento-compatibility.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,11 @@ jobs:
137137
bin/magento mageforge:hyva:tokens --help
138138
139139
echo "Verify command aliases work:"
140-
bin/magento m:s:v --help
141-
bin/magento m:s:c --help
142-
bin/magento m:t:l --help
143-
bin/magento m:t:b --help
144-
bin/magento m:t:w --help
145-
bin/magento m:t:c --help
146-
bin/magento m:h:c:c --help
147140
bin/magento frontend:list --help
148141
bin/magento frontend:build --help
149142
bin/magento frontend:watch --help
150143
bin/magento frontend:clean --help
144+
bin/magento theme:copy --help
151145
bin/magento hyva:check --help
152146
bin/magento hyva:tokens --help
153147
@@ -273,15 +267,9 @@ jobs:
273267
bin/magento mageforge:theme:inspector --help
274268
bin/magento mageforge:hyva:compatibility:check --help
275269
bin/magento mageforge:hyva:tokens --help
270+
bin/magento mageforge:theme:copy-from-vendor --help
276271
277272
echo "Verify command aliases work:"
278-
bin/magento m:s:v --help
279-
bin/magento m:s:c --help
280-
bin/magento m:t:l --help
281-
bin/magento m:t:b --help
282-
bin/magento m:t:w --help
283-
bin/magento m:t:c --help
284-
bin/magento m:h:c:c --help
285273
bin/magento frontend:list --help
286274
bin/magento frontend:build --help
287275
bin/magento frontend:watch --help

0 commit comments

Comments
 (0)