Skip to content

Commit 92c7334

Browse files
authored
Fix unit test scripts (#1263)
1 parent ae8b1e5 commit 92c7334

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [48.0.1] - 2024-12-07
8+
9+
### Fixed
10+
- Unit test scripts [PR #1263](https://github.com/markshust/docker-magento/pull/1263)
11+
712
## [48.0.0] - 2024-11-27
813

914
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.

compose/bin/test/unit

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

compose/bin/test/unit-coverage

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
1919
elif [[ -z $1 ]]; then
2020
echo -e "Please specify a path to your test or folder with tests (ex. app/code/Vendor/Module)"
2121
else
22-
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"
22+
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"
2323
echo -e "Report path: dev/tests/unit/report"
24-
fi
24+
fi

compose/bin/test/unit-xdebug

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

compose/compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Mark Shust's Docker Configuration for Magento
22
## (https://github.com/markshust/docker-magento)
33
##
4-
## Version 48.0.0
4+
## Version 48.0.1
55

66
## To use SSH, see https://github.com/markshust/docker-magento#ssh
77
## Linux users, see https://github.com/markshust/docker-magento#linux

0 commit comments

Comments
 (0)