checking in tests that were missed in r93659

This commit is contained in:
Ian Baker 2011-08-01 22:44:54 +00:00
parent 349ac95278
commit 74c1bef009
Notes: Ian Baker 2011-08-01 22:44:54 +00:00
2 changed files with 8 additions and 0 deletions

View file

@ -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>", "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' 'Listed title error text is as expected'
); );
$this->assertEquals(
$listed[0]['titleblacklist']['message'],
"titleblacklist-forbidden-edit",
'Correct blacklist message name is returned'
);
$this->assertEquals( $this->assertEquals(
$listed[0]['titleblacklist']['line'], $listed[0]['titleblacklist']['line'],
"[Bb]ar #example blacklist entry", "[Bb]ar #example blacklist entry",

View file

@ -1,2 +1,3 @@
[Bb]ar #example blacklist entry [Bb]ar #example blacklist entry
.*[Ff]ail.* .*[Ff]ail.*
.*[Nn]yancat.* <errmsg=blacklisted-nyancat>