| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | OP-571
| License | MIT
Transformed tests from Component/Promotion from PHPSpec to PHPUnit.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Chores**
- Updated dependencies and test configuration for improved compatibility
and testing standards.
- **Tests**
- Migrated all behavioral and model tests from the previous framework to
PHPUnit.
- Added comprehensive new test suites for all major components,
including promotion application, eligibility checking, coupon
generation, and model behaviors.
- Improved test coverage and reliability across the promotion system.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no<!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | partially #17837
| License | MIT
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Tests**
- Migrated test suite from PhpSpec to PHPUnit for improved compatibility
and maintenance.
- Added new PHPUnit tests for shipping date assignment, shipping method
configuration groups, calculator existence, and rule validation.
- Updated namespaces and directory structures in test files for
consistency.
- Removed legacy PhpSpec test files and configuration.
- **Chores**
- Updated test autoloading configuration and excluded additional test
paths from static analysis.
- Adjusted test directory references in configuration files for case
consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no<!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | partially #17837
| License | MIT
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Chores**
- Updated static analysis and test configuration files to improve
consistency and directory structure.
- Removed a development dependency and obsolete configuration for a
testing tool.
- Added PSR-4 autoloading for development test classes.
- **Tests**
- Migrated from PhpSpec to PHPUnit for testing.
- Added new PHPUnit test classes for controller, Twig extension, error
renderer, and component template finder functionalities.
- Improved namespace alignment and autoloading for test classes.
- Removed legacy PhpSpec test files and related fixtures.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | OP-571
| License | MIT
Rewrite PHPspec to PHPUnit Locale Component using
rector/cusotm-phpspec-to-phpunit
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Chores**
- Updated dependencies and autoloading configuration for the Locale
component.
- Removed PhpSpec configuration and legacy spec files.
- Added PHPUnit configuration for improved test management.
- **Tests**
- Migrated all Locale component tests from PhpSpec to PHPUnit.
- Introduced comprehensive PHPUnit test classes for context, converter,
model, and provider functionalities to ensure continued reliability and
coverage.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | OP-571
| License | MIT
Rewrite PHPSpec to PHPUnit in Inventory Component
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Chores**
- Switched the testing framework from PhpSpec to PHPUnit and updated
related configuration files.
- Reorganized test directories and namespaces for improved structure.
- **Tests**
- Added new PHPUnit tests for inventory availability checking and
inventory unit behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1 <!-- see the comment below -->
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets |
| License | MIT
Transformed tests from Component/Product from PHPSpec to PHPUnit.
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Tests**
- Migrated the test suite from PhpSpec to PHPUnit.
- Removed all legacy PhpSpec tests and configuration files.
- Added comprehensive PHPUnit tests for product factories, generators,
models, resolvers, and utility components.
- Improved test coverage for product behaviors, option handling, variant
generation, and slug creation.
- **Chores**
- Updated development dependencies and autoloading configuration to
support PHPUnit and the new test directory structure.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | OP-571
| License | MIT
Rewrite PHPSpec tests to PHPUnit
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Tests**
- Migrated the testing framework from PHPSpec to PHPUnit for the Review
component.
- Added new PHPUnit test suites for core classes, including tests for
average rating calculation, review and reviewer models, and the review
factory.
- Removed legacy PHPSpec tests and configuration files.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? |
| Related tickets | partially #17837
| License | MIT
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Tests**
- Migrated from PhpSpec to PHPUnit for all test coverage in the
AddressingBundle.
- Added new PHPUnit test classes for form subscribers, event listeners,
Twig extensions, and all custom validators.
- Improved test coverage and structure with updated namespaces and type
annotations.
- **Chores**
- Removed PhpSpec configuration and related dependencies.
- Updated static analysis and configuration files to align with new test
directory structure and naming conventions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | OP-571
| License | MIT
Fix to [PHPSpec to PHPUnit] Attribute Component #17984
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Style**
- Reformatted test code for improved readability by consolidating
multi-line mock method calls into single lines.
- Removed unused mock variables in several test methods.
- **Tests**
- Corrected typos in test method names to improve clarity.
- Updated method visibility and introduced shared setup in one test
class for consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | OP-571
| License | MIT
This is a fix to [PHPSpec to PHPUnit] Customer Component #18003 -Fixing
function names
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Tests**
- Improved clarity and consistency of test method names for customer and
customer group tests. No changes to test behavior or results.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | partially #17837
| License | MIT
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Chores**
- Removed PHPSpec-related configuration files and dependencies from
multiple bundles.
- Updated test autoloading and namespace structure for improved
consistency.
- Adjusted static analysis and test discovery settings to include
additional test directories and exclude certain test paths.
- **Refactor**
- Renamed test namespaces and updated related import statements for
better alignment with new directory structure.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2,1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no<!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | partially #17837
| License | MIT
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Tests**
- Replaced PhpSpec-based tests with PHPUnit-based tests for inventory
validation constraints and validators.
- Updated test configuration to include both legacy and new test
directories.
- **Chores**
- Removed PhpSpec configuration and related development dependencies.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no<!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | partially #17837
| License | MIT
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Chores**
- Updated test namespaces and directory paths to improve consistency.
- Removed PhpSpec configuration and related files.
- Adjusted test autoload settings for better organization.
- **Tests**
- No changes to test logic; only namespace and configuration updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | OP-571
| License | MIT
Rewrite PHPSpec to PHPUnit test in Customer Component
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Tests**
- Replaced the previous testing framework with PHPUnit for the Customer
component.
- Added new PHPUnit test suites for customer and customer group models.
- Removed legacy PHPSpec tests and configuration files.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | OP-571
| License | MIT
<!--
- Bug fixes must be submitted against the 1.14 or 2.0 branch
- Features and deprecations must be submitted against the 2.1 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the
documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Tests**
- Migrated the test suite from PHPSpec to PHPUnit for improved
compatibility and maintainability.
- Added new PHPUnit tests covering attribute types, factories, and
models to ensure comprehensive test coverage.
- Removed legacy PHPSpec tests and configuration files.
- **Documentation**
- Minor punctuation correction in the README file.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
| Q | A
|-----------------|-----
| Branch? | 2.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | OP-571
| License | MIT
Transformed tests from Component/Shipping from PHPSpec to PHPUnit.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Tests**
- Migrated all shipping component tests from PhpSpec to PHPUnit.
- Added comprehensive PHPUnit test coverage for calculators, eligibility
checkers, rule checkers, models, resolvers, and exceptions.
- Improved test organization and configuration with new PHPUnit setup
files.
- **Chores**
- Updated development dependencies and autoloading configuration.
- Removed legacy PhpSpec configuration and test files.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->