Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 in develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Sep 14, 2015
2 parents 7fcd653 + 7f657d5 commit 97f0e21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/Listener/LocatorRegistrationListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ public function testModuleClassIsRegisteredWithDiAndInjectedWithSharedInstances(

$locatorRegistrationListener = new LocatorRegistrationListener;
$this->moduleManager->getEventManager()->attachAggregate($locatorRegistrationListener);
$test = $this;
$this->moduleManager->getEventManager()->attach(ModuleEvent::EVENT_LOAD_MODULE, function ($e) use ($test) {
$test->module = $e->getModule();
$this->moduleManager->getEventManager()->attach(ModuleEvent::EVENT_LOAD_MODULE, function ($e) {
$this->module = $e->getModule();
}, -1000);
$this->moduleManager->loadModules();

Expand Down

0 comments on commit 97f0e21

Please sign in to comment.