We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b40081 + 1c61a10 commit 2cfcaeeCopy full SHA for 2cfcaee
1 file changed
tests/unit/SiteLinkListTest.php
@@ -322,4 +322,17 @@ public function testGivenSiteLinkWithExistingId_setNewSiteLinkReplacesIt() {
322
$this->assertEquals( $expectedList, $list );
323
}
324
325
+ public function testEmptyListHasCountZero() {
326
+ $this->assertSame( 0, ( new SiteLinkList() )->count() );
327
+ }
328
+
329
+ public function testListWithElementsHasCorrectCount() {
330
+ $list = new SiteLinkList();
331
+ $list->addNewSiteLink( 'enwiki', 'foo' );
332
+ $list->addNewSiteLink( 'dewiki', 'bar' );
333
+ $list->setNewSiteLink( 'nlwiki', 'baz' );
334
335
+ $this->assertSame( 3, $list->count() );
336
337
338
0 commit comments