Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Actions for PHPUnit Tests #784

Merged
merged 17 commits into from
Jun 23, 2023
Merged

Conversation

AntonyThorpe
Copy link
Contributor

Upgraded SilverShop's tests to PHPUnit 9.5. See issue #783.

silverstripe/omnipay dev-master required for test folder
Removed guzzle/plugin-mock.  The code is not used.
Assert Matches Regular Expression
Replaced method fieldByName with dataFieldByName
Upgraded class to match the PaymentTest in silverstripe-omnipay:
- added GuzzleHttp\Handler\MockHandler variable
- updated methods getHttpClient, getHttpRequest & setMockHttpResponse
Added $this->expectException & $this->expectExceptionMessage methods
Removed $this->fail method
Wrapped testsuite in testsuites
Added phpunit/phpunit & squizlabs/php_codesniffer to composer_require_extra in ci.yml to ensure that they are loaded
Added php-http/discovery to ci.yml to ensure PSR-17 response factory is found in 7.4 prf-low mysql57 tests
Migrated phpunit.xml.dist
Copied phpcs.xml.dist over from silverstripe/framework
Added protected variable $usesTransactions to OrderModifierTests & OrderProcessorTest
Extended password length in OrderProcessorTest
Added missing dependency php-http/guzzle7-adapter to composer.json (as per silverstripe-omnipay)
Upgraded versions of omnipay/dummy & omnipay/paymentexpress to the latest (as per silverstripe-omnipay) & to dev-master for tests
Set silverstripe/cms to v4.10 compatible with PHPUnit 9.5
Replaced strftime with date_format
Removed squizlabs/php_codesniffer from ci.yml
Code beautifier & fixer
@wilr wilr merged commit 1e24c12 into silvershop:master Jun 23, 2023
@AntonyThorpe AntonyThorpe deleted the PHPUnit95 branch June 24, 2023 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants