Fix more comments

This commit is contained in:
Sam Reed 2011-10-14 21:30:16 +00:00
parent 79793a5611
commit e6975d6152
Notes: Sam Reed 2011-10-14 21:30:16 +00:00

View file

@ -1,5 +1,5 @@
<?php
/*
/**
* Test the TitleBlacklist API
*
* This wants to run with phpunit.php, like so:
@ -23,7 +23,7 @@ class ApiQueryTitleBlacklistTest extends ApiTestCase {
// without this, blacklist applies only to anonymous users.
$wgGroupPermissions['sysop']['tboverride'] = false;
$wgTitleBlacklistSources = array(
array(
'type' => TBLSRC_FILE,
@ -51,13 +51,13 @@ class ApiQueryTitleBlacklistTest extends ApiTestCase {
"The title \"bar\" has been banned from creation.\nIt matches the following blacklist entry: <code>[Bb]ar #example blacklist entry</code>",
'Listed title error text is as expected'
);
$this->assertEquals(
$listed[0]['titleblacklist']['message'],
"titleblacklist-forbidden-edit",
'Correct blacklist message name is returned'
);
$this->assertEquals(
$listed[0]['titleblacklist']['line'],
"[Bb]ar #example blacklist entry",
@ -65,4 +65,4 @@ class ApiQueryTitleBlacklistTest extends ApiTestCase {
);
}
}
}