Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_antivirus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2016-11-10 00:46:24 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2016-11-10 00:47:08 +0300
commitc6c0f38ba6c3857274765ddc0c6448f3263e7cb5 (patch)
treea8407928d778ce2048542a3e25b4517f3da4b249 /tests
parent0bfc37d74c7e4e0f521750c29951b5fc02d4eaa8 (diff)
Mock interface, not private class
Diffstat (limited to 'tests')
-rw-r--r--tests/ActivityTest.php2
-rw-r--r--tests/TestBase.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ActivityTest.php b/tests/ActivityTest.php
index d51372c..82edd52 100644
--- a/tests/ActivityTest.php
+++ b/tests/ActivityTest.php
@@ -7,11 +7,11 @@
*/
namespace OCA\Files_antivirus\Tests;
-//namespace OCA\Files_Antivirus\Cron;
use OCA\Files_Antivirus\Activity;
class ActivityTest extends TestBase {
+ /** @var Activity */
protected $activity;
public function setUp(){
diff --git a/tests/TestBase.php b/tests/TestBase.php
index fdc72be..ee80e5f 100644
--- a/tests/TestBase.php
+++ b/tests/TestBase.php
@@ -36,7 +36,7 @@ abstract class TestBase extends \PHPUnit_Framework_TestCase {
$this->config->method('__call')
->will($this->returnCallback(array($this, 'getAppValue')));
- $this->l10n = $this->getMockBuilder('\OC_L10N')
+ $this->l10n = $this->getMockBuilder('\OCP\IL10N')
->disableOriginalConstructor()
->getMock()
;