File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ protected function tearDown(): void
101
101
* @param string $mockClassName the class name to use for the mock class
102
102
* @param bool $callOriginalConstructor whether to call the constructor
103
103
* @param bool $callOriginalClone whether to call the __clone method
104
- * @param bool $callAutoload whether to call any autoload function
105
104
*
106
105
* @return MockObject&AccessibleObjectInterface&T a mock of `$originalClassName` with access methods added
107
106
*/
@@ -112,7 +111,6 @@ protected function getAccessibleMock(
112
111
string $ mockClassName = '' ,
113
112
bool $ callOriginalConstructor = true ,
114
113
bool $ callOriginalClone = true ,
115
- bool $ callAutoload = true
116
114
) {
117
115
$ mockBuilder = $ this ->getMockBuilder ($ this ->buildAccessibleProxy ($ originalClassName ))
118
116
->setConstructorArgs ($ arguments )
@@ -132,10 +130,6 @@ protected function getAccessibleMock(
132
130
$ mockBuilder ->disableOriginalClone ();
133
131
}
134
132
135
- if (!$ callAutoload ) {
136
- $ mockBuilder ->disableAutoload ();
137
- }
138
-
139
133
return $ mockBuilder ->getMock ();
140
134
}
141
135
Original file line number Diff line number Diff line change 23
23
24
24
namespace Typo3 \TestingFramework \Tests \Unit \Core ;
25
25
26
+ use PHPUnit \Framework \Attributes \Test ;
26
27
use PHPUnit \Framework \TestCase ;
27
28
use TYPO3 \CMS \Core \Package \PackageManager ;
28
29
use TYPO3 \CMS \Core \Service \DependencyOrderingService ;
31
32
32
33
final class PackageCollectionTest extends TestCase
33
34
{
34
- /**
35
- * @test
36
- */
35
+ #[Test]
37
36
public function sortsComposerPackages (): void
38
37
{
39
38
$ packageStates = require __DIR__ . '/../Fixtures/Packages/PackageStates.php ' ;
Original file line number Diff line number Diff line change 28
28
"php" : " ^8.2" ,
29
29
"composer/class-map-generator" : " ^1.3.4" ,
30
30
"guzzlehttp/psr7" : " ^2.5.0" ,
31
- "phpunit/phpunit" : " ^11.2.5" ,
31
+ "phpunit/phpunit" : " ^11.2.5 || ^12.1.2 " ,
32
32
"psr/container" : " ^2.0" ,
33
33
"typo3/cms-backend" : " 13.*.*@dev || 14.*.*@dev" ,
34
34
"typo3/cms-core" : " 13.*.*@dev || 14.*.*@dev" ,
You can’t perform that action at this time.
0 commit comments