Skip to content

Commit 7661037

Browse files
committed
Revert "refactor: replace $this->manange to MockEvents"
This reverts commit 5148921.
1 parent 5148921 commit 7661037

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/system/Events/EventsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@ public function testInitialize()
5555

5656
// it should start out empty
5757
MockEvents::setFiles([]);
58-
$this->assertEmpty(MockEvents::getFiles());
58+
$this->assertEmpty($this->manager->getFiles());
5959

6060
// make sure we have a default events file
6161
$default = [APPPATH . 'Config' . DIRECTORY_SEPARATOR . 'Events.php'];
6262
$this->manager->unInitialize();
6363
MockEvents::initialize();
64-
$this->assertSame($default, MockEvents::getFiles());
64+
$this->assertSame($default, $this->manager->getFiles());
6565

6666
// but we should be able to change it through the backdoor
6767
MockEvents::setFiles(['/peanuts']);
68-
$this->assertSame(['/peanuts'], MockEvents::getFiles());
68+
$this->assertSame(['/peanuts'], $this->manager->getFiles());
6969

7070
// re-initializing should have no effect
7171
MockEvents::initialize();
72-
$this->assertSame(['/peanuts'], MockEvents::getFiles());
72+
$this->assertSame(['/peanuts'], $this->manager->getFiles());
7373
}
7474

7575
public function testPerformance()

0 commit comments

Comments
 (0)