File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 35
35
final class AsyncEventConcurrencyTest extends TestCase{
36
36
37
37
private Plugin $ mockPlugin ;
38
- private Server $ mockServer ;
39
-
40
38
private PluginManager $ pluginManager ;
41
39
42
40
//this one gets its own class because it requires a bunch of context variables
@@ -57,10 +55,10 @@ protected function setUp() : void{
57
55
58
56
//TODO: this is a really bad hack and could break any time if PluginManager decides to access its Server field
59
57
//we really need to make it possible to register events without a Plugin or Server context
60
- $ this -> mockServer = $ this ->createMock (Server::class);
58
+ $ mockServer = $ this ->createMock (Server::class);
61
59
$ this ->mockPlugin = self ::createStub (Plugin::class);
62
60
$ this ->mockPlugin ->method ('isEnabled ' )->willReturn (true );
63
- $ this ->pluginManager = new PluginManager ($ this -> mockServer , null );
61
+ $ this ->pluginManager = new PluginManager ($ mockServer , null );
64
62
}
65
63
66
64
public static function tearDownAfterClass () : void {
Original file line number Diff line number Diff line change 35
35
use function shuffle ;
36
36
37
37
final class AsyncEventTest extends TestCase{
38
-
39
- private Server $ mockServer ;
40
38
private Plugin $ mockPlugin ;
41
39
private PluginManager $ pluginManager ;
42
40
@@ -45,10 +43,10 @@ protected function setUp() : void{
45
43
46
44
//TODO: this is a really bad hack and could break any time if PluginManager decides to access its Server field
47
45
//we really need to make it possible to register events without a Plugin or Server context
48
- $ this -> mockServer = $ this ->createMock (Server::class);
46
+ $ mockServer = $ this ->createMock (Server::class);
49
47
$ this ->mockPlugin = self ::createStub (Plugin::class);
50
48
$ this ->mockPlugin ->method ('isEnabled ' )->willReturn (true );
51
- $ this ->pluginManager = new PluginManager ($ this -> mockServer , null );
49
+ $ this ->pluginManager = new PluginManager ($ mockServer , null );
52
50
}
53
51
54
52
public static function tearDownAfterClass () : void {
You can’t perform that action at this time.
0 commit comments