Get rid of ApiTestCase::doLogin
[lhc/web/wiklou.git] / tests / phpunit / includes / api / ApiBlockTest.php
index c0cf87e..374ea3c 100644 (file)
@@ -12,7 +12,6 @@ class ApiBlockTest extends ApiTestCase {
 
        protected function setUp() {
                parent::setUp();
-               $this->doLogin();
 
                $this->mUser = $this->getMutableTestUser()->getUser();
        }
@@ -207,7 +206,7 @@ class ApiBlockTest extends ApiTestCase {
                );
 
                // Allow flakiness up to one second
-               $this->assertLessThan( 1,
+               $this->assertLessThanOrEqual( 1,
                        abs( wfTimestamp( TS_UNIX, $expiry ) - ( time() + 86400 ) ) );
        }