From 74c1bef0098b56c509720e65fc8945e27d9001ae Mon Sep 17 00:00:00 2001 From: Ian Baker Date: Mon, 1 Aug 2011 22:44:54 +0000 Subject: [PATCH] checking in tests that were missed in r93659 --- tests/ApiQueryTitleBlacklistTest.php | 7 +++++++ tests/testSource | 1 + 2 files changed, 8 insertions(+) diff --git a/tests/ApiQueryTitleBlacklistTest.php b/tests/ApiQueryTitleBlacklistTest.php index 3b9a882a..04d01fcb 100644 --- a/tests/ApiQueryTitleBlacklistTest.php +++ b/tests/ApiQueryTitleBlacklistTest.php @@ -51,6 +51,13 @@ class ApiQueryTitleBlacklistTest extends ApiTestCase { "The title \"bar\" has been banned from creation.\nIt matches the following blacklist entry: [Bb]ar #example blacklist entry", '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", diff --git a/tests/testSource b/tests/testSource index 852e3ce4..d21f0494 100644 --- a/tests/testSource +++ b/tests/testSource @@ -1,2 +1,3 @@ [Bb]ar #example blacklist entry .*[Ff]ail.* +.*[Nn]yancat.*