summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-06 00:12:03 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-06 00:12:03 -0400
commitd9643dadbba2363b0277ad0e0aa75ac19c6df4af (patch)
tree340478bee434834e7fc27d034c6b5391c4c7c9ae /tests
parentcd135af707929251f37c448e0543b0b5a9b6ed76 (diff)
Change travis config
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Auth/LdapTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/units/Auth/LdapTest.php b/tests/units/Auth/LdapTest.php
index e861be98..8d470d88 100644
--- a/tests/units/Auth/LdapTest.php
+++ b/tests/units/Auth/LdapTest.php
@@ -51,7 +51,7 @@ class LdapTest extends \Base
$this->equalTo('my_ldap_server'),
$this->equalTo(389)
)
- ->willReturn(true);
+ ->will($this->returnValue('my_ldap_resource'));
$ldap = new Ldap($this->container);
$this->assertNotFalse($ldap->connect());
@@ -66,7 +66,7 @@ class LdapTest extends \Base
$this->equalTo('my_ldap_server'),
$this->equalTo(389)
)
- ->willReturn(false);
+ ->will($this->returnValue(false));
$ldap = new Ldap($this->container);
$this->assertFalse($ldap->connect());
@@ -82,7 +82,7 @@ class LdapTest extends \Base
$this->equalTo(null),
$this->equalTo(null)
)
- ->willReturn(true);
+ ->will($this->returnValue(true));
$ldap = new Ldap($this->container);
$this->assertTrue($ldap->bind('my_ldap_connection', 'my_user', 'my_password', 'anonymous'));
@@ -98,7 +98,7 @@ class LdapTest extends \Base
$this->equalTo('uid=my_user'),
$this->equalTo('my_password')
)
- ->willReturn(true);
+ ->will($this->returnValue(true));
$ldap = new Ldap($this->container);
$this->assertTrue($ldap->bind('my_ldap_connection', 'my_user', 'my_password', 'user', 'uid=%s', 'something'));
@@ -114,7 +114,7 @@ class LdapTest extends \Base
$this->equalTo('someone'),
$this->equalTo('something')
)
- ->willReturn(true);
+ ->will($this->returnValue(true));
$ldap = new Ldap($this->container);
$this->assertTrue($ldap->bind('my_ldap_connection', 'my_user', 'my_password', 'proxy', 'someone', 'something'));