Commit 0b68f1b
PHPUnit: added some tests (OpenMage#4204)
* Rector: CQ - UnusedForeachValueToArrayKeysRector (#1)
* Rector: CQ - UnusedForeachValueToArrayKeysRector
See Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector
* fixes + phpstan
See fix at rector: rectorphp/rector-src#6164
* Updated test
* Added test
* Added test
* Renamed and updated test
* Updated test
* Updated test
* Updated test
* Updated test
* Revert "Rector: CQ - UnusedForeachValueToArrayKeysRector (#1)"
This reverts commit 3d7eaf6.
* Updated test (phpstan L9)
* Updated test (fixed namespace)
* Updated test (phpstan L9)
* Added unit test to code style check and phpstan
* Some cleanup
* Some cleanup
* Some cleanup
* Updated workflow
* ddev shortcut [ski ci]
* Moved phphunit config file
* Merged phpunit & sonar workflow
* PhpUnit fix
- PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/runner/work/magento-lts/magento-lts/lib/Varien/Object.php on line 594
* Fix linefeed (?)
* Fix config
* Fixed invalid php version
* Use minimum version
* Use minimum version for SonarScan
* Fix command [ski ci]
* Enable xdebug
* Added test, ref OpenMage#4123
* Revert "Some cleanup"
This reverts commit 6d45ed6.
* Revert "PhpUnit fix"
This reverts commit f4935f1.
* Updated test
* Updated docblocks
* Revert "Fix linefeed (?)"
This reverts commit dee0422.
* Added tests
* Added tests
* Added tests [skip ci]
* Reverted changes to Mage_Core_Model_Website
* Updated config
* Updated .gitignore
* Updated workflow
* Updated workflow typo
* Updated workflow continue on error
* Updated workflow if condition
* Updated workflow [skip ci]
* Moved tests to root (as common)
* Fixed paths
* Fixed paths
* Fixed paths
* CS fix
* Added test
* Added test
* Added groups/suites
* Updated test
* CS fix
* Updated .gitignore
* Updated phpunit.xml.dist
* Added test
* Added tests
* Added tests
* Added tests
* Added tests
* CS fix
* CS fix
* Added tests
* Added tests
* Added tests
* Added tests
* CS/PhpStan fixes
* Update
- some tests commented - need files changes
* Nicer output?
* Don't wait for phpcs
* Revert output
* Updated workflows
* Added test
* Added phpunit command to composer.json
* Updated DDEV commands
* Fixed phpunit commands at composer.json
* WIP
* phpcs and phpstan fixes
* Updated tests
* Moved test to correct directory
* Added tests
---------
Co-authored-by: Ng Kiat Siong <[email protected]>1 parent 93856f0 commit 0b68f1b
File tree
44 files changed
+1150
-71
lines changed- app/code/core/Mage
- Adminhtml/Block
- Customer/Edit/Tab
- System/Convert
- Gui/Edit/Tab
- Profile/Edit/Tab
- Cms
- Controller
- Helper
- Wysiwyg
- Model
- Mysql4
- Block
- Page
- Resource
- Block
- Page
- Wysiwyg/Images
- Core/Model
- Resource
- Log/Model
- lib/Varien/Data/Collection
- tests/unit/Mage
- AdminNotification/Model
- Adminhtml/Block
- Customer/Edit/Tab
- System/Convert
- Gui/Edit/Tab
- Profile/Edit/Tab
- Cms
- Block
- Widget
- Page
- Helper/Wysiwyg
- Model
- Wysiwyg
- Images
- Core/Model
- Customer/Model
- Log/Model
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+1150
-71
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 113 | | |
117 | 114 | | |
118 | 115 | | |
119 | 116 | | |
| 117 | + | |
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
| |||
296 | 294 | | |
297 | 295 | | |
298 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
299 | 302 | | |
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
98 | 103 | | |
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
209 | 212 | | |
210 | 213 | | |
211 | 214 | | |
| 215 | + | |
212 | 216 | | |
| 217 | + | |
213 | 218 | | |
214 | 219 | | |
215 | 220 | | |
| |||
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
| 243 | + | |
238 | 244 | | |
239 | 245 | | |
240 | 246 | | |
| |||
274 | 280 | | |
275 | 281 | | |
276 | 282 | | |
| 283 | + | |
277 | 284 | | |
278 | 285 | | |
279 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| 25 | + | |
22 | 26 | | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| 25 | + | |
22 | 26 | | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
0 commit comments