aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Notification/ActionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Notification/ActionTest.php')
-rw-r--r--tests/lib/Notification/ActionTest.php45
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/lib/Notification/ActionTest.php b/tests/lib/Notification/ActionTest.php
index 74c995280c9..9160ea7a7c3 100644
--- a/tests/lib/Notification/ActionTest.php
+++ b/tests/lib/Notification/ActionTest.php
@@ -55,14 +55,8 @@ class ActionTest extends TestCase {
public function dataSetLabelInvalid() {
return [
- [true],
- [false],
- [0],
- [1],
[''],
[str_repeat('a', 33)],
- [[]],
- [[str_repeat('a', 33)]],
];
}
@@ -96,13 +90,7 @@ class ActionTest extends TestCase {
public function dataSetParsedLabelInvalid() {
return [
- [true],
- [false],
- [0],
- [1],
[''],
- [[]],
- [[str_repeat('a', 33)]],
];
}
@@ -140,23 +128,11 @@ class ActionTest extends TestCase {
public function dataSetLinkInvalid() {
return [
// Invalid link
- [true, 'GET'],
- [false, 'GET'],
- [0, 'GET'],
- [1, 'GET'],
['', 'GET'],
[str_repeat('a', 257), 'GET'],
- [[], 'GET'],
- [[str_repeat('a', 257)], 'GET'],
// Invalid type
['url', 'notGET'],
- ['url', true],
- ['url', false],
- ['url', 0],
- ['url', 1],
- ['url', []],
- ['url', ['GET']],
];
}
@@ -188,27 +164,6 @@ class ActionTest extends TestCase {
$this->assertSame($primary, $this->action->isPrimary());
}
- public function dataSetPrimaryInvalid() {
- return [
- [0],
- [1],
- [''],
- [str_repeat('a', 257)],
- [[]],
- [[str_repeat('a', 257)]],
- ];
- }
-
- /**
- * @dataProvider dataSetPrimaryInvalid
- * @param mixed $primary
- *
- * @expectedException \InvalidArgumentException
- */
- public function testSetPrimaryInvalid($primary) {
- $this->action->setPrimary($primary);
- }
-
public function testIsValid() {
$this->assertFalse($this->action->isValid());
$this->assertFalse($this->action->isValidParsed());