File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ public static function setFiles(array $files)
246
246
*
247
247
* @return string[]
248
248
*/
249
- public function getFiles ()
249
+ public static function getFiles ()
250
250
{
251
251
return static ::$ files ;
252
252
}
Original file line number Diff line number Diff line change @@ -55,21 +55,21 @@ public function testInitialize()
55
55
56
56
// it should start out empty
57
57
MockEvents::setFiles ([]);
58
- $ this ->assertEmpty ($ this -> manager -> getFiles ());
58
+ $ this ->assertEmpty (Events:: getFiles ());
59
59
60
60
// make sure we have a default events file
61
61
$ default = [APPPATH . 'Config ' . DIRECTORY_SEPARATOR . 'Events.php ' ];
62
62
$ this ->manager ->unInitialize ();
63
63
MockEvents::initialize ();
64
- $ this ->assertSame ($ default , $ this -> manager -> getFiles ());
64
+ $ this ->assertSame ($ default , Events:: getFiles ());
65
65
66
66
// but we should be able to change it through the backdoor
67
67
MockEvents::setFiles (['/peanuts ' ]);
68
- $ this ->assertSame (['/peanuts ' ], $ this -> manager -> getFiles ());
68
+ $ this ->assertSame (['/peanuts ' ], Events:: getFiles ());
69
69
70
70
// re-initializing should have no effect
71
71
MockEvents::initialize ();
72
- $ this ->assertSame (['/peanuts ' ], $ this -> manager -> getFiles ());
72
+ $ this ->assertSame (['/peanuts ' ], Events:: getFiles ());
73
73
}
74
74
75
75
public function testPerformance ()
You can’t perform that action at this time.
0 commit comments