Index: trunk/extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php |
— | — | @@ -51,7 +51,14 @@ |
52 | 52 | "The title \"bar\" has been banned from creation.\nIt matches the following blacklist entry: <code>[Bb]ar #example blacklist entry</code>", |
53 | 53 | 'Listed title error text is as expected' |
54 | 54 | ); |
| 55 | + |
55 | 56 | $this->assertEquals( |
| 57 | + $listed[0]['titleblacklist']['message'], |
| 58 | + "titleblacklist-forbidden-edit", |
| 59 | + 'Correct blacklist message name is returned' |
| 60 | + ); |
| 61 | + |
| 62 | + $this->assertEquals( |
56 | 63 | $listed[0]['titleblacklist']['line'], |
57 | 64 | "[Bb]ar #example blacklist entry", |
58 | 65 | 'Correct blacklist line is returned' |
Index: trunk/extensions/TitleBlacklist/tests/testSource |
— | — | @@ -1,2 +1,3 @@ |
2 | 2 | [Bb]ar #example blacklist entry |
3 | 3 | .*[Ff]ail.* |
| 4 | +.*[Nn]yancat.* <errmsg=blacklisted-nyancat> |