mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Add more action tests
This commit is contained in:
parent
c6469be8bd
commit
270b0bd91b
2 changed files with 12 additions and 9 deletions
|
|
@ -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)],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue