diff options
Diffstat (limited to 'tests/lib/group')
-rw-r--r-- | tests/lib/group/backend.php | 8 | ||||
-rw-r--r-- | tests/lib/group/database.php | 10 | ||||
-rw-r--r-- | tests/lib/group/dummy.php | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/tests/lib/group/backend.php b/tests/lib/group/backend.php index 9405e90aabf..61e008b6ca5 100644 --- a/tests/lib/group/backend.php +++ b/tests/lib/group/backend.php @@ -31,7 +31,7 @@ abstract class Test_Group_Backend extends UnitTestCase { * test cases can override this in order to clean up created groups * @return array */ - public function getGroupName(){ + public function getGroupName() { return uniqid('test_'); } @@ -40,11 +40,11 @@ abstract class Test_Group_Backend extends UnitTestCase { * test cases can override this in order to clean up created user * @return array */ - public function getUserName(){ + public function getUserName() { return uniqid('test_'); } - public function testAddRemove(){ + public function testAddRemove() { //get the number of groups we start with, in case there are exising groups $startCount=count($this->backend->getGroups()); @@ -68,7 +68,7 @@ abstract class Test_Group_Backend extends UnitTestCase { $this->assertFalse((array_search($name2,$this->backend->getGroups())!==false)); } - public function testUser(){ + public function testUser() { $group1=$this->getGroupName(); $group2=$this->getGroupName(); $this->backend->createGroup($group1); diff --git a/tests/lib/group/database.php b/tests/lib/group/database.php index fb51bc8d8d9..5278c26f4df 100644 --- a/tests/lib/group/database.php +++ b/tests/lib/group/database.php @@ -28,7 +28,7 @@ class Test_Group_Database extends Test_Group_Backend { * test cases can override this in order to clean up created groups * @return array */ - public function getGroupName(){ + public function getGroupName() { $name=uniqid('test_'); $this->groups[]=$name; return $name; @@ -39,16 +39,16 @@ class Test_Group_Database extends Test_Group_Backend { * test cases can override this in order to clean up created user * @return array */ - public function getUserName(){ + public function getUserName() { return uniqid('test_'); } - public function setUp(){ + public function setUp() { $this->backend=new OC_Group_Database(); } - public function tearDown(){ - foreach($this->groups as $group){ + public function tearDown() { + foreach($this->groups as $group) { $this->backend->deleteGroup($group); } } diff --git a/tests/lib/group/dummy.php b/tests/lib/group/dummy.php index d0b475d3ec5..287d6f1a977 100644 --- a/tests/lib/group/dummy.php +++ b/tests/lib/group/dummy.php @@ -21,7 +21,7 @@ */ class Test_Group_Dummy extends Test_Group_Backend { - public function setUp(){ + public function setUp() { $this->backend=new OC_Group_Dummy(); } } |