summaryrefslogtreecommitdiffstats
path: root/tests/lib/group
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-24 16:47:17 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-24 16:47:17 +0100
commitef88ceba8c1108aad6a4f437206f205c60fda870 (patch)
tree707b73619edbb7b6a734358054e4d878f0fe2137 /tests/lib/group
parent1dac2ba496a0054e9d5383a6babe7401dd2a260c (diff)
downloadnextcloud-server-ef88ceba8c1108aad6a4f437206f205c60fda870.tar.gz
nextcloud-server-ef88ceba8c1108aad6a4f437206f205c60fda870.zip
drop SimpleTest compatibility
Diffstat (limited to 'tests/lib/group')
-rw-r--r--tests/lib/group/backend.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/lib/group/backend.php b/tests/lib/group/backend.php
index f61abed5f29..d308232a78b 100644
--- a/tests/lib/group/backend.php
+++ b/tests/lib/group/backend.php
@@ -20,7 +20,7 @@
*
*/
-abstract class Test_Group_Backend extends UnitTestCase {
+abstract class Test_Group_Backend extends PHPUnit_Framework_TestCase {
/**
* @var OC_Group_Backend $backend
*/
@@ -52,18 +52,18 @@ abstract class Test_Group_Backend extends UnitTestCase {
$name2=$this->getGroupName();
$this->backend->createGroup($name1);
$count=count($this->backend->getGroups())-$startCount;
- $this->assertEqual(1, $count);
+ $this->assertEquals(1, $count);
$this->assertTrue((array_search($name1, $this->backend->getGroups())!==false));
$this->assertFalse((array_search($name2, $this->backend->getGroups())!==false));
$this->backend->createGroup($name2);
$count=count($this->backend->getGroups())-$startCount;
- $this->assertEqual(2, $count);
+ $this->assertEquals(2, $count);
$this->assertTrue((array_search($name1, $this->backend->getGroups())!==false));
$this->assertTrue((array_search($name2, $this->backend->getGroups())!==false));
$this->backend->deleteGroup($name2);
$count=count($this->backend->getGroups())-$startCount;
- $this->assertEqual(1, $count);
+ $this->assertEquals(1, $count);
$this->assertTrue((array_search($name1, $this->backend->getGroups())!==false));
$this->assertFalse((array_search($name2, $this->backend->getGroups())!==false));
}
@@ -91,15 +91,15 @@ abstract class Test_Group_Backend extends UnitTestCase {
$this->assertFalse($this->backend->addToGroup($user1, $group1));
- $this->assertEqual(array($user1), $this->backend->usersInGroup($group1));
- $this->assertEqual(array(), $this->backend->usersInGroup($group2));
+ $this->assertEquals(array($user1), $this->backend->usersInGroup($group1));
+ $this->assertEquals(array(), $this->backend->usersInGroup($group2));
- $this->assertEqual(array($group1), $this->backend->getUserGroups($user1));
- $this->assertEqual(array(), $this->backend->getUserGroups($user2));
+ $this->assertEquals(array($group1), $this->backend->getUserGroups($user1));
+ $this->assertEquals(array(), $this->backend->getUserGroups($user2));
$this->backend->deleteGroup($group1);
- $this->assertEqual(array(), $this->backend->getUserGroups($user1));
- $this->assertEqual(array(), $this->backend->usersInGroup($group1));
+ $this->assertEquals(array(), $this->backend->getUserGroups($user1));
+ $this->assertEquals(array(), $this->backend->usersInGroup($group1));
$this->assertFalse($this->backend->inGroup($user1, $group1));
}
}