diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-07-30 21:07:55 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-07-30 21:07:55 +0100 |
commit | 46916914f8190ae72c38e01c9941c429734aee04 (patch) | |
tree | 1086067b60286cdb1b541b9e52c78a2161e59ae4 | |
parent | 5699fff8893d38a3524013266a0b7e94be79bb31 (diff) | |
parent | 0223221a64e39ed6448f8e852f079bc355b6dc1a (diff) | |
download | nextcloud-server-46916914f8190ae72c38e01c9941c429734aee04.tar.gz nextcloud-server-46916914f8190ae72c38e01c9941c429734aee04.zip |
Merge pull request #17993 from owncloud/simplecontainertest-fix
Fix incorrect test naming in SimpleContainerTest
-rw-r--r-- | tests/lib/appframework/utility/SimpleContainerTest.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/lib/appframework/utility/SimpleContainerTest.php b/tests/lib/appframework/utility/SimpleContainerTest.php index 09857808b9f..7ff579a85fc 100644 --- a/tests/lib/appframework/utility/SimpleContainerTest.php +++ b/tests/lib/appframework/utility/SimpleContainerTest.php @@ -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() { |