summaryrefslogtreecommitdiffstats
path: root/tests/lib/Group
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 15:27:18 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 15:27:18 +0100
commit3a7cf40aaa678bea1df143d2982d603b7a334eec (patch)
tree63c1e3ad7f7f401d14411a4d44c523632906afc9 /tests/lib/Group
parent0568b012672d650c6b5a49e72c4028dde5463c60 (diff)
downloadnextcloud-server-3a7cf40aaa678bea1df143d2982d603b7a334eec.tar.gz
nextcloud-server-3a7cf40aaa678bea1df143d2982d603b7a334eec.zip
Mode to modern phpunit
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Group')
-rw-r--r--tests/lib/Group/GroupTest.php2
-rw-r--r--tests/lib/Group/ManagerTest.php2
-rw-r--r--tests/lib/Group/MetaDataTest.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Group/GroupTest.php b/tests/lib/Group/GroupTest.php
index 1a240d5bc98..61e4b39c8f3 100644
--- a/tests/lib/Group/GroupTest.php
+++ b/tests/lib/Group/GroupTest.php
@@ -21,7 +21,7 @@ class GroupTest extends \Test\TestCase {
/** @var EventDispatcherInterface|MockObject */
protected $dispatcher;
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$this->dispatcher = $this->createMock(EventDispatcherInterface::class);
}
diff --git a/tests/lib/Group/ManagerTest.php b/tests/lib/Group/ManagerTest.php
index 86665ee0879..d5f8baa3fa1 100644
--- a/tests/lib/Group/ManagerTest.php
+++ b/tests/lib/Group/ManagerTest.php
@@ -409,7 +409,7 @@ class ManagerTest extends TestCase {
$this->assertCount(2, $groups);
foreach ($groups as $group) {
- $this->assertInternalType('string', $group);
+ $this->assertIsString($group);
}
}
diff --git a/tests/lib/Group/MetaDataTest.php b/tests/lib/Group/MetaDataTest.php
index c53a7eb2adf..4332a6f036f 100644
--- a/tests/lib/Group/MetaDataTest.php
+++ b/tests/lib/Group/MetaDataTest.php
@@ -34,7 +34,7 @@ class MetaDataTest extends \Test\TestCase {
/** @var bool */
private $isAdmin = true;
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$this->groupManager = $this->getMockBuilder('\OC\Group\Manager')
->disableOriginalConstructor()