summaryrefslogtreecommitdiffstats
path: root/tests/lib/notification
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-09-03 14:48:27 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-09-08 09:01:02 +0200
commit270b0bd91b9ff5ab8fa87bd2e8124ff0bb35470b (patch)
tree8f741c4ae46712b05e4db6a0f529d7ac583c8964 /tests/lib/notification
parentc6469be8bdb70a57da5212f7b1e8e4836e0bb2be (diff)
downloadnextcloud-server-270b0bd91b9ff5ab8fa87bd2e8124ff0bb35470b.tar.gz
nextcloud-server-270b0bd91b9ff5ab8fa87bd2e8124ff0bb35470b.zip
Add more action tests
Diffstat (limited to 'tests/lib/notification')
-rw-r--r--tests/lib/notification/actiontest.php16
-rw-r--r--tests/lib/notification/notificationtest.php5
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;