diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2016-11-10 00:46:24 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2016-11-10 00:47:08 +0300 |
commit | c6c0f38ba6c3857274765ddc0c6448f3263e7cb5 (patch) | |
tree | a8407928d778ce2048542a3e25b4517f3da4b249 /tests | |
parent | 0bfc37d74c7e4e0f521750c29951b5fc02d4eaa8 (diff) |
Mock interface, not private class
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ActivityTest.php | 2 | ||||
-rw-r--r-- | tests/TestBase.php | 2 |
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() ; |