Commit f30028b
Make all PHPUnit data providers static (PHPUnit 10+ compatibility) (#5486)
* Initial plan
* Make all PHPUnit data provider methods static for PHPUnit 10+ compatibility
Agent-Logs-Url: https://github.com/OpenMage/magento-lts/sessions/0ed20cbc-5be3-48bb-b912-3c3d652e7126
Co-authored-by: sreichel <5022236+sreichel@users.noreply.github.com>
* Fix $this-> calls in static data provider methods
Agent-Logs-Url: https://github.com/OpenMage/magento-lts/sessions/0ed20cbc-5be3-48bb-b912-3c3d652e7126
Co-authored-by: sreichel <5022236+sreichel@users.noreply.github.com>
* Fix staticMethod.dynamicCall: use self:: instead of $this-> for static getTestString() in ImagesTest
Agent-Logs-Url: https://github.com/OpenMage/magento-lts/sessions/9fa5d994-5e8d-4668-9088-7b9d5bdef1e5
Co-authored-by: sreichel <5022236+sreichel@users.noreply.github.com>
* Update copilot-instructions.md with PHPUnit testing standards learned from PR
Agent-Logs-Url: https://github.com/OpenMage/magento-lts/sessions/f69826d6-8f46-432e-bc98-5ef558d758c4
Co-authored-by: sreichel <5022236+sreichel@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sreichel <5022236+sreichel@users.noreply.github.com>
Co-authored-by: Sven Reichel <github-sr@hotmail.com>1 parent b91e9b2 commit f30028b
69 files changed
Lines changed: 137 additions & 127 deletions
File tree
- .github
- tests/unit
- Base
- Error
- Mage/Cms/Helper/Wysiwyg
- Traits
- DataProvider
- Base
- Mage
- AdminNotification/Model
- Adminhtml
- Block/Widget
- Helper
- Model/LayoutUpdate
- Admin/Model
- Api/Model
- Catalog
- Helper
- Product
- Model
- Product
- Option/Type
- Cms
- Block/Widget/Page
- Core
- Helper
- Model
- Email/Template
- Customer
- Block/Widget
- Dataflow/Model/Convert/Parser
- Directory
- Downloadable
- GiftMessage
- Index/Block/Adminhtml/Process
- Log
- Helper
- Model
- Newsletter
- Reports
- Review
- Rule
- Sitemap
- Tax
- Uploader
- Usa/Helper
- Wishlist/Model
- Varien
- PhpStormMetaData
- Varien/Data/Form/Filter
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
63 | 73 | | |
64 | 74 | | |
65 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments