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

Commit

Permalink
Zend\Di Shared Support:
Browse files Browse the repository at this point in the history
* Fixed other unit tests to expect the new key in configuration values
  • Loading branch information
Ralph Schindler committed Mar 19, 2012
1 parent b777d27 commit 4ed737c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public function testConfigurationCanConfigureInstanceManagerWithIniFile()
$this->assertContains('my-dbAdapter', $im->getTypePreferences('my-mapper'));

$this->assertTrue($im->hasConfiguration('My\DbAdapter'));
$expected = array('parameters' => array('username' => 'readonly', 'password' => 'mypassword'), 'injections' => array());
$expected = array('parameters' => array('username' => 'readonly', 'password' => 'mypassword'), 'injections' => array(), 'shared' => array());
$this->assertEquals($expected, $im->getConfiguration('My\DbAdapter'));

$this->assertTrue($im->hasConfiguration('my-dbAdapter'));
$expected = array('parameters' => array('username' => 'readwrite'), 'injections' => array());
$expected = array('parameters' => array('username' => 'readwrite'), 'injections' => array(), 'shared' => array());
$this->assertEquals($expected, $im->getConfiguration('my-dbAdapter'));
}

Expand Down
1 change: 1 addition & 0 deletions test/InstanceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function testInstanceManagerResolvesRecursiveAliasesForConfiguration()
$im->setConfiguration('bar-alias', $config);

$config['injections'] = array();
$config['shared'] = array();

$this->assertEquals($config, $im->getConfiguration('foo-alias'));
}
Expand Down

0 comments on commit 4ed737c

Please sign in to comment.