From 1a31d82d61304db501cea5bb08e1724f81cfbdf3 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 14 Oct 2014 09:37:47 +0200 Subject: fix #634 --- tests/unit/config/AppConfigTest.php | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'tests') diff --git a/tests/unit/config/AppConfigTest.php b/tests/unit/config/AppConfigTest.php index 95fbbd1fd..8d1b0daf9 100644 --- a/tests/unit/config/AppConfigTest.php +++ b/tests/unit/config/AppConfigTest.php @@ -24,9 +24,6 @@ class AppConfigTest extends \PHPUnit_Framework_TestCase { $this->nav = $this->getMockBuilder('\OCP\INavigationManager') ->disableOriginalConstructor() ->getMock(); - $this->l10n = $this->getMockBuilder('\OCP\IL10N') - ->disableOriginalConstructor() - ->getMock(); $this->url = $this->getMockBuilder('\OCP\IURLGenerator') ->disableOriginalConstructor() ->getMock(); @@ -35,9 +32,8 @@ class AppConfigTest extends \PHPUnit_Framework_TestCase { $installedExtensions = ['curl' => '4.3']; $databaseType = 'oracle'; - $this->config = new AppConfig($this->nav, $this->l10n, - $this->url, $phpVersion, $ownCloudVersion, - $installedExtensions, $databaseType); + $this->config = new AppConfig($this->nav, $this->url, $phpVersion, + $ownCloudVersion, $installedExtensions, $databaseType); } public function testGetId() { @@ -78,11 +74,6 @@ class AppConfigTest extends \PHPUnit_Framework_TestCase { 'name' => 'News' ]; - $this->l10n->expects($this->once()) - ->method('t') - ->with($this->equalTo('News')) - ->will($this->returnValue('News')); - $this->url->expects($this->once()) ->method('linkToRoute') ->with($this->equalTo('news.page.index')) @@ -116,11 +107,6 @@ class AppConfigTest extends \PHPUnit_Framework_TestCase { 'name' => 'haha' ]; - $this->l10n->expects($this->once()) - ->method('t') - ->with($this->equalTo('haha')) - ->will($this->returnValue('haha')); - $this->url->expects($this->once()) ->method('linkToRoute') ->with($this->equalTo('abc.page.index')) -- cgit v1.2.3