Skip to content

Commit

Permalink
[zendframework#5651] Separated test cases
Browse files Browse the repository at this point in the history
- Moved new test assertions into their own test case to ensure they failed
  before the patch was made.
  • Loading branch information
weierophinney committed Mar 10, 2014
1 parent f64bcde commit 539fecc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/ZendTest/ModuleManager/ModuleManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,19 @@ public function testCanLoadModuleDuringTheLoadModuleEvent()
$config = $configListener->getMergedConfig();
$this->assertTrue(isset($config['loaded']));
$this->assertSame('oh, yeah baby!', $config['loaded']);
}

/**
* @group 5651
*/
public function testLoadingModuleFromAnotherModuleDemonstratesAppropriateSideEffects()
{
$configListener = $this->defaultListeners->getConfigListener();
$moduleManager = new ModuleManager(array('LoadOtherModule', 'BarModule'));
$moduleManager->getEventManager()->attachAggregate($this->defaultListeners);
$moduleManager->loadModules();

$config = $configListener->getMergedConfig();
$this->assertTrue(isset($config['baz']));
$this->assertSame('bar', $config['baz']);
}
Expand Down

0 comments on commit 539fecc

Please sign in to comment.