The fullname is displayed instead of the username if not empty
This commit is contained in:
@@ -247,7 +247,7 @@ class Api extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
$users = $this->client->getAllowedUsers(1);
|
||||
$this->assertNotFalse($users);
|
||||
$this->assertEquals(array(1 => 'admin', 2 => 'titi'), $users);
|
||||
$this->assertEquals(array(1 => 'admin', 2 => 'Titi'), $users);
|
||||
}
|
||||
|
||||
public function testAllowedUser()
|
||||
@@ -256,7 +256,7 @@ class Api extends PHPUnit_Framework_TestCase
|
||||
|
||||
$users = $this->client->getAllowedUsers(1);
|
||||
$this->assertNotFalse($users);
|
||||
$this->assertEquals(array(2 => 'titi'), $users);
|
||||
$this->assertEquals(array(2 => 'Titi'), $users);
|
||||
}
|
||||
|
||||
public function testRevokeUser()
|
||||
@@ -265,7 +265,7 @@ class Api extends PHPUnit_Framework_TestCase
|
||||
|
||||
$users = $this->client->getAllowedUsers(1);
|
||||
$this->assertNotFalse($users);
|
||||
$this->assertEquals(array(1 => 'admin', 2 => 'titi'), $users);
|
||||
$this->assertEquals(array(1 => 'admin', 2 => 'Titi'), $users);
|
||||
}
|
||||
|
||||
public function testCreateComment()
|
||||
|
||||
Reference in New Issue
Block a user