diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-08 10:07:09 +0300 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-08 10:07:09 +0300 |
commit | 9578d607c8d75dc843e5f376bdeaba4ec1f5b8fc (patch) | |
tree | bc69f3d607d362f2d59c679deed6dfd19d8eac8f /tests | |
parent | 96edd1061bc729953705fcca94a51446930ca989 (diff) |
Interfaces are private for now
Diffstat (limited to 'tests')
-rw-r--r-- | tests/appinfo/AppTest.php | 4 | ||||
-rw-r--r-- | tests/controller/EndpointControllerTest.php | 22 | ||||
-rw-r--r-- | tests/lib/AppTest.php | 4 | ||||
-rw-r--r-- | tests/lib/HandlerTest.php | 6 |
4 files changed, 18 insertions, 18 deletions
diff --git a/tests/appinfo/AppTest.php b/tests/appinfo/AppTest.php index ff72e84..a4ebe38 100644 --- a/tests/appinfo/AppTest.php +++ b/tests/appinfo/AppTest.php @@ -24,13 +24,13 @@ namespace OCA\Notifications\Tests\AppInfo; use OCA\Notifications\Tests\TestCase; class AppTest extends TestCase { - /** @var \OCP\Notification\IManager|\PHPUnit_Framework_MockObject_MockObject */ + /** @var \OC\Notification\IManager|\PHPUnit_Framework_MockObject_MockObject */ protected $manager; protected function setUp() { parent::setUp(); - $this->manager = $this->getMockBuilder('OCP\Notification\IManager') + $this->manager = $this->getMockBuilder('OC\Notification\IManager') ->disableOriginalConstructor() ->getMock(); diff --git a/tests/controller/EndpointControllerTest.php b/tests/controller/EndpointControllerTest.php index 2ba1927..34b6cc8 100644 --- a/tests/controller/EndpointControllerTest.php +++ b/tests/controller/EndpointControllerTest.php @@ -32,7 +32,7 @@ class EndpointControllerTest extends TestCase { /** @var \OCA\Notifications\Handler|\PHPUnit_Framework_MockObject_MockObject */ protected $handler; - /** @var \OCP\Notification\IManager|\PHPUnit_Framework_MockObject_MockObject */ + /** @var \OC\Notification\IManager|\PHPUnit_Framework_MockObject_MockObject */ protected $manager; /** @var \OCP\IConfig|\PHPUnit_Framework_MockObject_MockObject */ @@ -54,8 +54,8 @@ class EndpointControllerTest extends TestCase { ->disableOriginalConstructor() ->getMock(); - /** @var \OCP\Notification\IManager|\PHPUnit_Framework_MockObject_MockObject */ - $this->manager = $this->getMockBuilder('OCP\Notification\IManager') + /** @var \OC\Notification\IManager|\PHPUnit_Framework_MockObject_MockObject */ + $this->manager = $this->getMockBuilder('OC\Notification\IManager') ->disableOriginalConstructor() ->getMock(); @@ -97,10 +97,10 @@ class EndpointControllerTest extends TestCase { ], [ [ - 1 => $this->getMockBuilder('OCP\Notification\INotification') + 1 => $this->getMockBuilder('OC\Notification\INotification') ->disableOriginalConstructor() ->getMock(), - 3 => $this->getMockBuilder('OCP\Notification\INotification') + 3 => $this->getMockBuilder('OC\Notification\INotification') ->disableOriginalConstructor() ->getMock(), ], @@ -108,7 +108,7 @@ class EndpointControllerTest extends TestCase { ], [ [ - 42 => $this->getMockBuilder('OCP\Notification\INotification') + 42 => $this->getMockBuilder('OC\Notification\INotification') ->disableOriginalConstructor() ->getMock(), ], @@ -130,7 +130,7 @@ class EndpointControllerTest extends TestCase { ->method('notificationToArray') ->willReturn('$notification'); - $filter = $this->getMockBuilder('OCP\Notification\INotification') + $filter = $this->getMockBuilder('OC\Notification\INotification') ->disableOriginalConstructor() ->getMock(); $filter->expects($this->once()) @@ -184,10 +184,10 @@ class EndpointControllerTest extends TestCase { return [ [42, 'app1', 'user1', 1234, 'type1', 42, 'subject1', 'message1', 'link1', 'icon1', [], []], [1337, 'app2', 'user2', 1337, 'type2', 21, 'subject2', 'message2', 'link2', 'icon2', [ - $this->getMockBuilder('OCP\Notification\IAction') + $this->getMockBuilder('OC\Notification\IAction') ->disableOriginalConstructor() ->getMock(), - $this->getMockBuilder('OCP\Notification\IAction') + $this->getMockBuilder('OC\Notification\IAction') ->disableOriginalConstructor() ->getMock(), ], ['action', 'action']], @@ -211,7 +211,7 @@ class EndpointControllerTest extends TestCase { * @param array $actionsExpected */ public function testNotificationToArray($id, $app, $user, $timestamp, $type, $id, $subject, $message, $link, $icon, array $actions, array $actionsExpected) { - $notification = $this->getMockBuilder('OCP\Notification\INotification') + $notification = $this->getMockBuilder('OC\Notification\INotification') ->disableOriginalConstructor() ->getMock(); @@ -295,7 +295,7 @@ class EndpointControllerTest extends TestCase { * @param string $icon */ public function testActionToArray($label, $link, $requestType, $icon) { - $action = $this->getMockBuilder('OCP\Notification\IAction') + $action = $this->getMockBuilder('OC\Notification\IAction') ->disableOriginalConstructor() ->getMock(); diff --git a/tests/lib/AppTest.php b/tests/lib/AppTest.php index 7dee552..d81f44a 100644 --- a/tests/lib/AppTest.php +++ b/tests/lib/AppTest.php @@ -29,7 +29,7 @@ class AppTest extends TestCase { /** @var \OCA\Notifications\Handler|\PHPUnit_Framework_MockObject_MockObject */ protected $handler; - /** @var \OCP\Notification\INotification|\PHPUnit_Framework_MockObject_MockObject */ + /** @var \OC\Notification\INotification|\PHPUnit_Framework_MockObject_MockObject */ protected $notification; /** @var \OCA\Notifications\App */ @@ -42,7 +42,7 @@ class AppTest extends TestCase { ->disableOriginalConstructor() ->getMock(); - $this->notification = $this->getMockBuilder('OCP\Notification\INotification') + $this->notification = $this->getMockBuilder('OC\Notification\INotification') ->disableOriginalConstructor() ->getMock(); diff --git a/tests/lib/HandlerTest.php b/tests/lib/HandlerTest.php index 4fca3fb..c0c3136 100644 --- a/tests/lib/HandlerTest.php +++ b/tests/lib/HandlerTest.php @@ -151,10 +151,10 @@ class HandlerTest extends TestCase { /** * @param array $values - * @return \OCP\Notification\INotification|\PHPUnit_Framework_MockObject_MockObject + * @return \OC\Notification\INotification|\PHPUnit_Framework_MockObject_MockObject */ protected function getNotification(array $values = []) { - $notification = $this->getMockBuilder('OCP\Notification\INotification') + $notification = $this->getMockBuilder('OC\Notification\INotification') ->disableOriginalConstructor() ->getMock(); @@ -162,7 +162,7 @@ class HandlerTest extends TestCase { if ($method === 'getActions') { $actions = []; foreach ($returnValue as $actionData) { - $action = $this->getMockBuilder('OCP\Notification\IAction') + $action = $this->getMockBuilder('OC\Notification\IAction') ->disableOriginalConstructor() ->getMock(); foreach ($actionData as $actionMethod => $actionValue) { |