Merge pull request #17993 from owncloud/simplecontainertest-fix

Fix incorrect test naming in SimpleContainerTest
This commit is contained in:
Robin McCorkell 2015-07-30 21:07:55 +01:00
commit 46916914f8
1 changed files with 2 additions and 4 deletions

View File

@ -136,8 +136,7 @@ class SimpleContainerTest extends \Test\TestCase {
}
public function tesOverrideService() {
$this->container->registerParameter('test', 'abc');
public function testOverrideService() {
$this->container->registerService(
'Test\AppFramework\Utility\IInterfaceConstructor', function ($c) {
return $c->query('Test\AppFramework\Utility\ClassSimpleConstructor');
@ -147,10 +146,9 @@ class SimpleContainerTest extends \Test\TestCase {
return $c->query('Test\AppFramework\Utility\ClassEmptyConstructor');
});
$object = $this->container->query(
'Test\AppFramework\Utility\ClassInterfaceConstructor'
'Test\AppFramework\Utility\IInterfaceConstructor'
);
$this->assertTrue($object instanceof ClassEmptyConstructor);
$this->assertEquals('abc', $object->test);
}
public function testRegisterAliasParamter() {