Browse Source

Fix unit test scripts (#1263)

Mark Shust 6 tháng trước cách đây
mục cha
commit
92c73343eb

+ 5 - 0
CHANGELOG.md

@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
 and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
 
+## [48.0.1] - 2024-12-07
+
+### Fixed
+- Unit test scripts [PR #1263](https://github.com/markshust/docker-magento/pull/1263)
+
 ## [48.0.0] - 2024-11-27
 
 This release introduces significant enhancements to the development environment, including a new PHP 8.4 Docker image for early adopters and developers wanting to test future compatibility. The MageOS support has been substantially improved, and a new RabbitMQ 3.13 image has been added. Several quality-of-life improvements have been implemented, such as better unit testing tools, enhanced SSL generation for multi-site setups, and comprehensive documentation updates. A notable breaking change is the shift in the download command syntax - it now expects the edition type before the version number (ex: `bin/download community 2.4.7-p3` instead of the previous `bin/download 2.4.7 community`). Additionally, all Docker images have been updated to maintain parity with current Magento version requirements.

+ 2 - 2
compose/bin/test/unit

@@ -20,5 +20,5 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
 elif [[ -z $1 ]]; then
   echo -e "Please specify a path to your test or folder with tests (ex. app/code/Vendor/Module)"
 else
-  bin/php vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/"$1"
-fi
+  bin/cli vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/"$1"
+fi

+ 2 - 2
compose/bin/test/unit-coverage

@@ -19,6 +19,6 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
 elif [[ -z $1 ]]; then
   echo -e "Please specify a path to your test or folder with tests (ex. app/code/Vendor/Module)"
 else
-  bin/php -d xdebug.mode=coverage vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist --coverage-html ./dev/tests/unit/report /var/www/html/"$1"
+  bin/cli php -d xdebug.mode=coverage vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist --coverage-html ./dev/tests/unit/report /var/www/html/"$1"
   echo -e "Report path: dev/tests/unit/report"
-fi
+fi

+ 2 - 2
compose/bin/test/unit-xdebug

@@ -20,5 +20,5 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
 elif [[ -z $1 ]]; then
   echo -e "Please specify a path to your test or folder with tests (ex. app/code/Vendor/Module)"
 else
-  bin/php -d xdebug.start_with_request=yes vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/"$1"
-fi
+  bin/cli php -d xdebug.start_with_request=yes vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/"$1"
+fi

+ 1 - 1
compose/compose.yaml

@@ -1,7 +1,7 @@
 ## Mark Shust's Docker Configuration for Magento
 ## (https://github.com/markshust/docker-magento)
 ##
-## Version 48.0.0
+## Version 48.0.1
 
 ## To use SSH, see https://github.com/markshust/docker-magento#ssh
 ## Linux users, see https://github.com/markshust/docker-magento#linux