Index: trunk/extensions/FlaggedRevs/tests/FRUserCountersTest.php |
— | — | @@ -69,6 +69,7 @@ |
70 | 70 | FRUserCounters::updateUserParams( $copyP, $article, "edit summary" ); |
71 | 71 | $this->assertEquals( $p['totalContentEdits']+1, $copyP['totalContentEdits'], |
72 | 72 | "Content edit count on content edit" ); |
| 73 | + |
73 | 74 | $expected = $p['uniqueContentPages']; |
74 | 75 | $expected[] = 0; |
75 | 76 | $this->assertEquals( $expected, $copyP['uniqueContentPages'], |
— | — | @@ -85,6 +86,9 @@ |
86 | 87 | $copyP = $p; |
87 | 88 | FRUserCounters::updateUserParams( $copyP, $article, "/* section */" ); |
88 | 89 | $this->assertEquals( $p['editComments'], $copyP['editComments'], "Auto summary" ); |
| 90 | + |
| 91 | + $title = Title::makeTitleSafe( 4, 'helloworld' ); |
| 92 | + $article = new Article( $title ); |
89 | 93 | |
90 | 94 | $copyP = $p; |
91 | 95 | FRUserCounters::updateUserParams( $copyP, $article, "edit summary" ); |