summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-07-30 16:06:26 +0100
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-07-30 16:06:26 +0100
commit0223221a64e39ed6448f8e852f079bc355b6dc1a (patch)
treef31526beb0dda90abf4fe4940346da951df95a3b /tests
parent22fd04eb4117e80341becce13190d5a8fcea98ca (diff)
downloadnextcloud-server-0223221a64e39ed6448f8e852f079bc355b6dc1a.tar.gz
nextcloud-server-0223221a64e39ed6448f8e852f079bc355b6dc1a.zip
Fix incorrect test naming
`tesOverrideService()` was incorrect and wasn't getting called by PHPUnit. Also, the unit test itself was wrong, but went unnoticed because of point 1.
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/appframework/utility/SimpleContainerTest.php6
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() {