From af70943faac06b30d067166425e329a1cb985dbc Mon Sep 17 00:00:00 2001 From: brantje Date: Wed, 21 Dec 2016 23:04:38 +0100 Subject: [PATCH] Fix some tests --- tests/unit/controller/TranslationControllerTest.php | 4 ++-- tests/unit/lib/Utility/UtilsTest.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/unit/controller/TranslationControllerTest.php b/tests/unit/controller/TranslationControllerTest.php index 27cf3271..e57be2e6 100644 --- a/tests/unit/controller/TranslationControllerTest.php +++ b/tests/unit/controller/TranslationControllerTest.php @@ -49,8 +49,8 @@ class TranslationControllerTest extends PHPUnit_Framework_TestCase { /** * @covers ::getLanguageStrings */ - public function getLanguageStrings() { - $result = $this->controller->getLanguageStrings(); + public function testGetLanguageStrings() { + $result = $this->controller->getLanguageStrings(null); $this->assertTrue($result instanceof JSONResponse); } } \ No newline at end of file diff --git a/tests/unit/lib/Utility/UtilsTest.php b/tests/unit/lib/Utility/UtilsTest.php index a527d030..5a06c7f7 100644 --- a/tests/unit/lib/Utility/UtilsTest.php +++ b/tests/unit/lib/Utility/UtilsTest.php @@ -29,7 +29,6 @@ use OCA\Passman\Utility\Utils; class UtilsTest extends PHPUnit_Framework_TestCase { /** * @covers ::GUID - * @requires function com_create_guid */ public function testGUID(){ $pattern = '/[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}/';