/**
* @group Database
* @group Destructive
+ * @todo This test suite is severly broken and need a full review
*/
class ApiWatchTest extends ApiTestSetup {
return $this->getTokenList( $this->sysopUser );
}
+ /**
+ * @group Broken
+ */
function testWatchEdit() {
$data = $this->getTokens();
- $this->markTestIncomplete( "Broken" );
$keys = array_keys( $data[0]['query']['pages'] );
$key = array_pop( $keys );
$pageinfo = $data[0]['query']['pages'][$key];
return $data;
}
-
+ /**
+ * @group Broken
+ */
function testWatchProtect() {
$data = $this->getTokens();
- $this->markTestIncomplete( "Broken" );
$keys = array_keys( $data[0]['query']['pages'] );
$key = array_pop( $keys );
$pageinfo = $data[0]['query']['pages'][$key];
/**
* @depends testGetRollbackToken
+ * @group Broken
*/
function testWatchRollback( $data ) {
$keys = array_keys( $data[0]['query']['pages'] );
if( $ue->getCodeString() == 'onlyauthor' ) {
$this->markTestIncomplete( "Only one author to 'UTPage', cannot test rollback" );
} else {
- $this->fail( "Received error " . $ue->getCodeString() );
+ $this->fail( "Received error '" . $ue->getCodeString() . "'" );
}
}
$this->assertArrayHasKey( 'title', $data[0]['rollback'] );
}
-
+ /**
+ * @group Broken
+ */
function testWatchDelete() {
$data = $this->getTokens();
- $this->markTestIncomplete( "Broken" );
$keys = array_keys( $data[0]['query']['pages'] );
$key = array_pop( $keys );
$pageinfo = $data[0]['query']['pages'][$key];