summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-07 11:36:38 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-07 11:36:38 +0200
commit3ea2dfa5f9c0692f68ce64856bdf203a9bbc2018 (patch)
tree5c9bc0504c8fdc5aa66db79826bc704b5a635ec6 /tests
parent1e5012fc1d0fab73ce5694b513fe1308615961f0 (diff)
downloadnextcloud-server-3ea2dfa5f9c0692f68ce64856bdf203a9bbc2018.tar.gz
nextcloud-server-3ea2dfa5f9c0692f68ce64856bdf203a9bbc2018.zip
remove getTrans() from API class
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/appframework/dependencyinjection/DIContainerTest.php21
1 files changed, 2 insertions, 19 deletions
diff --git a/tests/lib/appframework/dependencyinjection/DIContainerTest.php b/tests/lib/appframework/dependencyinjection/DIContainerTest.php
index 25fdd202839..f3ebff0207f 100644
--- a/tests/lib/appframework/dependencyinjection/DIContainerTest.php
+++ b/tests/lib/appframework/dependencyinjection/DIContainerTest.php
@@ -29,23 +29,14 @@ namespace OC\AppFramework\DependencyInjection;
use \OC\AppFramework\Http\Request;
-//require_once(__DIR__ . "/../classloader.php");
-
-
class DIContainerTest extends \PHPUnit_Framework_TestCase {
private $container;
+ private $api;
protected function setUp(){
$this->container = new DIContainer('name');
- $this->api = $this->getMock('OC\AppFramework\Core\API', array('getTrans'), array('hi'));
- }
-
- private function exchangeAPI(){
- $this->api->expects($this->any())
- ->method('getTrans')
- ->will($this->returnValue('yo'));
- $this->container['API'] = $this->api;
+ $this->api = $this->getMock('OC\AppFramework\Core\API', array(), array('hi'));
}
public function testProvidesAPI(){
@@ -87,12 +78,4 @@ class DIContainerTest extends \PHPUnit_Framework_TestCase {
}
- public function testMiddlewareDispatcherDoesNotIncludeTwigWhenTplDirectoryNotSet(){
- $this->container['Request'] = new Request();
- $this->exchangeAPI();
- $dispatcher = $this->container['MiddlewareDispatcher'];
-
- $this->assertEquals(1, count($dispatcher->getMiddlewares()));
- }
-
}