10 class ApiParseTest
extends ApiTestCase
{
12 protected function setUp() {
17 public function testParseNonexistentPage() {
18 $somePage = mt_rand();
21 $this->doApiRequest( array(
23 'page' => $somePage ) );
25 $this->fail( "API did not return an error when parsing a nonexistent page" );
26 } catch ( UsageException
$ex ) {
30 "Parse request for nonexistent page must give 'missingtitle' error: "
31 . var_export( $ex->getMessageArray(), true )