Skip to content

Use Magento's PHP 8 Attributes in Tests Instead of Annotations #17

@JosephLeedy

Description

@JosephLeedy

Replace usages of Magento's annotations in tests with new PHP 8 attributes.

Old Annotation New Attribute
@magentoAppIsolation enabled #[\Magento\TestFramework\Fixture\AppIsolation(true)]
@magentoAppArea frontend #[\Magento\TestFramework\Fixture\AppArea('frontend')]
@magentoConfigFixture current_store sales/custom_order_fees/custom_fees [] #[\Magento\TestFramework\Fixture\Config(ConfigInterface::CONFIG_PATH_CUSTOM_FEES, '[]', ScopeInterface::SCOPE_STORE, 'current')]
@magentoDataFixture JosephLeedy_CustomFees::../test/Integration/_files/orders_with_custom_fees.php #[\Magento\TestFramework\Fixture\Data('JosephLeedy_CustomFees::../test/Integration/_files/orders_with_custom_fees.php')

Metadata

Metadata

Assignees

Labels

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions