From 270b0bd91b9ff5ab8fa87bd2e8124ff0bb35470b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 3 Sep 2015 14:48:27 +0200 Subject: [PATCH] Add more action tests --- tests/lib/notification/actiontest.php | 16 ++++++++++------ tests/lib/notification/notificationtest.php | 5 ++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/tests/lib/notification/actiontest.php b/tests/lib/notification/actiontest.php index 5b3f10f9ce8..994e22a2f14 100644 --- a/tests/lib/notification/actiontest.php +++ b/tests/lib/notification/actiontest.php @@ -24,8 +24,9 @@ namespace Test\Notification; use OC\Notification\Action; use OCP\Notification\IAction; +use Test\TestCase; -class ActionTest extends \Test\TestCase { +class ActionTest extends TestCase { /** @var IAction */ protected $action; @@ -37,7 +38,8 @@ class ActionTest extends \Test\TestCase { public function dataSetLabel() { return [ ['test1'], - ['test2'], + [str_repeat('a', 1)], + [str_repeat('a', 32)], ]; } @@ -77,7 +79,8 @@ class ActionTest extends \Test\TestCase { public function dataSetParsedLabel() { return [ ['test1'], - ['test2'], + [str_repeat('a', 1)], + [str_repeat('a', 32)], ]; } @@ -117,8 +120,8 @@ class ActionTest extends \Test\TestCase { return [ ['test1', 'GET'], ['test2', 'POST'], - ['test3', 'PUT'], - ['test4', 'DELETE'], + [str_repeat('a', 1), 'PUT'], + [str_repeat('a', 256), 'DELETE'], ]; } @@ -171,7 +174,8 @@ class ActionTest extends \Test\TestCase { public function dataSetIcon() { return [ ['test1'], - ['test2'], + [str_repeat('a', 1)], + [str_repeat('a', 64)], ]; } diff --git a/tests/lib/notification/notificationtest.php b/tests/lib/notification/notificationtest.php index 8f1779dd968..5865d2dbee1 100644 --- a/tests/lib/notification/notificationtest.php +++ b/tests/lib/notification/notificationtest.php @@ -22,12 +22,11 @@ namespace Test\Notification; -use OC\Notification\Action; use OC\Notification\Notification; -use OCP\Notification\IAction; use OCP\Notification\INotification; +use Test\TestCase; -class NotificationTest extends \Test\TestCase { +class NotificationTest extends TestCase { /** @var INotification */ protected $notification;