summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/api/ApiPurgeTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/api/ApiPurgeTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiPurgeTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/phpunit/includes/api/ApiPurgeTest.php b/tests/phpunit/includes/api/ApiPurgeTest.php
index 2566c6cd..28b5ff4d 100644
--- a/tests/phpunit/includes/api/ApiPurgeTest.php
+++ b/tests/phpunit/includes/api/ApiPurgeTest.php
@@ -3,10 +3,11 @@
/**
* @group API
* @group Database
+ * @group medium
*/
class ApiPurgeTest extends ApiTestCase {
- function setUp() {
+ protected function setUp() {
parent::setUp();
$this->doLogin();
}
@@ -14,7 +15,7 @@ class ApiPurgeTest extends ApiTestCase {
/**
* @group Broken
*/
- function testPurgeMainPage() {
+ public function testPurgeMainPage() {
if ( !Title::newFromText( 'UTPage' )->exists() ) {
$this->markTestIncomplete( "The article [[UTPage]] does not exist" );
}
@@ -32,9 +33,8 @@ class ApiPurgeTest extends ApiTestCase {
"Purge request for three articles should give back three results received: " . var_export( $data[0]['purge'], true ) );
$pages = array( 'UTPage' => 'purged', $somePage => 'missing', '%5D' => 'invalid' );
- foreach( $data[0]['purge'] as $v ) {
+ foreach ( $data[0]['purge'] as $v ) {
$this->assertArrayHasKey( $pages[$v['title']], $v );
}
}
-
}