Remove all the trailing spaces
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3076 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -39,7 +39,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_createTables2 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->createTables ();
|
||||
@@ -52,7 +52,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_objectCreate1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->objectAdd ("MODULE", "/object");
|
||||
@@ -62,7 +62,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_objectUpdate1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->objectUpdate ("MODULE", "/object", "/object2");
|
||||
@@ -72,7 +72,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_objectDelete1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
// The object was renamed and is not available
|
||||
@@ -86,7 +86,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_groupCreate1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->groupAdd ("MODULE", "group");
|
||||
@@ -96,7 +96,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_groupUpdate1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->groupUpdate ("MODULE", "group", "group2");
|
||||
@@ -106,7 +106,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_groupDelete1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
// The group doesn't exists
|
||||
@@ -120,7 +120,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_groupmemberCreate1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
// The group doesn't exists
|
||||
@@ -131,7 +131,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_groupmemberCreate2 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->groupmemberAdd ("MODULE", "group2", "userKnown");
|
||||
@@ -141,7 +141,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_groupmemberDelete1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
// The group doesn't exists
|
||||
@@ -158,7 +158,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
// The group doesn't exists
|
||||
$this->setExpectedException ("Exception");
|
||||
$res = $authz->groupmemberReadGroup ("MODULE", "group");
|
||||
}
|
||||
}
|
||||
|
||||
public function test_groupmemberReadGroup2 ()
|
||||
{
|
||||
@@ -168,7 +168,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->groupmemberReadGroup ("MODULE", "group2");
|
||||
$this->assertSame (array (array ("user"=>"userKnown")), $res);
|
||||
}
|
||||
}
|
||||
|
||||
public function test_groupmemberReadUser1 ()
|
||||
{
|
||||
@@ -178,7 +178,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->groupmemberReadUser ("MODULE", "userKnown");
|
||||
$this->assertSame (array (1=>"group2"), $res);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////
|
||||
// RIGHTS //
|
||||
@@ -186,7 +186,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_rightCreate1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->rightAdd ("MODULE", "group2","/object2", "RW");
|
||||
@@ -196,7 +196,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_rightUpdate1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->rightUpdate ("MODULE", "group2", "/object2", "RO");
|
||||
@@ -206,7 +206,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_rightDelete1 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
// The object doesn't exists
|
||||
@@ -221,7 +221,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_deleteGroupmember2 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->groupmemberDel ("MODULE", "group2","userKnown");
|
||||
@@ -231,7 +231,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_deleteObject2 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->objectDel ("MODULE", "/object2");
|
||||
@@ -241,7 +241,7 @@ class test_authzgroups extends PHPUnit_Framework_TestCase
|
||||
public function test_deleteGroup2 ()
|
||||
{
|
||||
$authz = new authzgroups ();
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$authz->connect ($this->dbconfig["dsn"], $this->dbconfig["username"],
|
||||
$this->dbconfig["password"],
|
||||
$this->dbconfig["driver_options"]);
|
||||
$res = $authz->groupDel ("MODULE", "group2");
|
||||
|
||||
Reference in New Issue
Block a user