Skip to content

Commit 71d4b5b

Browse files
committed
refactor: change $this->manage to Event class.
1 parent 7661037 commit 71d4b5b

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($this->manager->getFiles());
58+
$this->assertEmpty(Events::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, $this->manager->getFiles());
64+
$this->assertSame($default, Events::getFiles());
6565

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

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

7575
public function testPerformance()

0 commit comments

Comments
 (0)