dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of ApiTestCase::doLogin
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
ApiBlockTest.php
diff --git
a/tests/phpunit/includes/api/ApiBlockTest.php
b/tests/phpunit/includes/api/ApiBlockTest.php
index
c0cf87e
..
374ea3c
100644
(file)
--- a/
tests/phpunit/includes/api/ApiBlockTest.php
+++ b/
tests/phpunit/includes/api/ApiBlockTest.php
@@
-12,7
+12,6
@@
class ApiBlockTest extends ApiTestCase {
protected function setUp() {
parent::setUp();
protected function setUp() {
parent::setUp();
- $this->doLogin();
$this->mUser = $this->getMutableTestUser()->getUser();
}
$this->mUser = $this->getMutableTestUser()->getUser();
}
@@
-207,7
+206,7
@@
class ApiBlockTest extends ApiTestCase {
);
// Allow flakiness up to one second
);
// Allow flakiness up to one second
- $this->assertLessThan( 1,
+ $this->assertLessThan
OrEqual
( 1,
abs( wfTimestamp( TS_UNIX, $expiry ) - ( time() + 86400 ) ) );
}
abs( wfTimestamp( TS_UNIX, $expiry ) - ( time() + 86400 ) ) );
}