diff options
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/Activity/Filter/GenericTest.php')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/Activity/Filter/GenericTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/dav/tests/unit/CalDAV/Activity/Filter/GenericTest.php b/apps/dav/tests/unit/CalDAV/Activity/Filter/GenericTest.php index 4d5bcea9966..a09cbed4fce 100644 --- a/apps/dav/tests/unit/CalDAV/Activity/Filter/GenericTest.php +++ b/apps/dav/tests/unit/CalDAV/Activity/Filter/GenericTest.php @@ -56,7 +56,7 @@ class GenericTest extends TestCase { public function testGetIdentifier($filterClass) { /** @var IFilter $filter */ $filter = \OC::$server->query($filterClass); - $this->assertInternalType('string', $filter->getIdentifier()); + $this->assertIsString($filter->getIdentifier()); } /** @@ -66,7 +66,7 @@ class GenericTest extends TestCase { public function testGetName($filterClass) { /** @var IFilter $filter */ $filter = \OC::$server->query($filterClass); - $this->assertInternalType('string', $filter->getName()); + $this->assertIsString($filter->getName()); } /** @@ -77,7 +77,7 @@ class GenericTest extends TestCase { /** @var IFilter $filter */ $filter = \OC::$server->query($filterClass); $priority = $filter->getPriority(); - $this->assertInternalType('int', $filter->getPriority()); + $this->assertIsInt($filter->getPriority()); $this->assertGreaterThanOrEqual(0, $priority); $this->assertLessThanOrEqual(100, $priority); } @@ -89,7 +89,7 @@ class GenericTest extends TestCase { public function testGetIcon($filterClass) { /** @var IFilter $filter */ $filter = \OC::$server->query($filterClass); - $this->assertInternalType('string', $filter->getIcon()); + $this->assertIsString($filter->getIcon()); $this->assertStringStartsWith('http', $filter->getIcon()); } @@ -100,7 +100,7 @@ class GenericTest extends TestCase { public function testFilterTypes($filterClass) { /** @var IFilter $filter */ $filter = \OC::$server->query($filterClass); - $this->assertInternalType('array', $filter->filterTypes([])); + $this->assertIsArray($filter->filterTypes([])); } /** @@ -110,6 +110,6 @@ class GenericTest extends TestCase { public function testAllowedApps($filterClass) { /** @var IFilter $filter */ $filter = \OC::$server->query($filterClass); - $this->assertInternalType('array', $filter->allowedApps()); + $this->assertIsArray($filter->allowedApps()); } } |