diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-29 20:53:19 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-29 20:53:19 +0200 |
commit | 650ef3331a92bac717f5501b79c01e2579506499 (patch) | |
tree | 590efa5cf718e2ad9d167285832a36b6193cb621 /tests/unit | |
parent | 53b01ed13eedbaaca7a1f1e13653a95223ab41db (diff) |
fix manifest test
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/controller/AppControllerTest.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/unit/controller/AppControllerTest.php b/tests/unit/controller/AppControllerTest.php index 50dcb173a..82bd7ab9c 100644 --- a/tests/unit/controller/AppControllerTest.php +++ b/tests/unit/controller/AppControllerTest.php @@ -40,9 +40,9 @@ class AppControllerTest extends \PHPUnit_Framework_TestCase { '\OCA\News\Config\AppConfig') ->disableOriginalConstructor() ->getMock(); - + $this->configData = [ - "name" => "AppTest", + "name" => "AppTest", "id" => "apptest", "description" => "This is a test app", "homepage" => "https://github.com/owncloud/test" @@ -57,12 +57,11 @@ class AppControllerTest extends \PHPUnit_Framework_TestCase { ->method('getConfig') ->will($this->returnValue($this->configData)); $result = $this->controller->manifest(); - $jsonResult = json_decode($result->render(), true); - $this->assertEquals($jsonResult['name'], + $this->assertEquals($result['name'], $this->configData['name']); - $this->assertEquals($jsonResult['description'], + $this->assertEquals($result['description'], $this->configData['description']); - $this->assertEquals($jsonResult['developer']['url'], + $this->assertEquals($result['developer']['url'], $this->configData['homepage']); } |