mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-28 07:50:32 +00:00
checking in tests that were missed in r93659
This commit is contained in:
parent
349ac95278
commit
74c1bef009
Notes:
Ian Baker
2011-08-01 22:44:54 +00:00
|
@ -51,6 +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",
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
[Bb]ar #example blacklist entry
|
||||
.*[Ff]ail.*
|
||||
.*[Nn]yancat.* <errmsg=blacklisted-nyancat>
|
||||
|
|
Loading…
Reference in a new issue