Added case example to tests

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/9617/head
John Molakvoæ (skjnldsv) 8 years ago
parent 0bfe3da664
commit ad6e548411
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
  1. 6
      tests/lib/User/ManagerTest.php

@ -236,7 +236,7 @@ class ManagerTest extends TestCase {
$backend->expects($this->once())
->method('getUsers')
->with($this->equalTo('fo'))
->will($this->returnValue(array('foo', 'afoo')));
->will($this->returnValue(array('foo', 'afoo', 'Afoo1', 'Bfoo')));
$backend->expects($this->never())
->method('loginName2UserName');
@ -244,8 +244,10 @@ class ManagerTest extends TestCase {
$manager->registerBackend($backend);
$result = $manager->search('fo');
$this->assertEquals(2, count($result));
$this->assertEquals(4, count($result));
$this->assertEquals('afoo', array_shift($result)->getUID());
$this->assertEquals('Afoo1', array_shift($result)->getUID());
$this->assertEquals('Bfoo', array_shift($result)->getUID());
$this->assertEquals('foo', array_shift($result)->getUID());
}

Loading…
Cancel
Save