Atom-ignore gh-pages directory.

This commit is contained in:
Daniel Kraus
2017-08-26 20:57:14 +02:00
parent 3f32077884
commit e2a6229487
2 changed files with 27 additions and 0 deletions

1
.atomignore Normal file
View File

@ -0,0 +1 @@
gh-pages/

View File

@ -0,0 +1,26 @@
<?php
/**
* Tests the LinkTitles\Targets class.
*
* @group bovender
* @group Database
*/
class TargetsTest extends LinkTitles\TestCase {
/**
* This test asserts that the list of potential link targets is 0
* @return [type] [description]
*/
public function testTargets() {
$title = \Title::newFromText( 'link target' );
$targets = LinkTitles\Targets::default( $title, new LinkTitles\Config() );
// Count number of articles: Inspired by updateArticleCount.php maintenance
// script: https://doc.wikimedia.org/mediawiki-core/master/php/updateArticleCount_8php_source.html
$dbr = $this->getDB( DB_MASTER );
$counter = new SiteStatsInit( $dbr );
$count = $counter->articles();
$this->assertSame( $targets->queryResult->numRows(), $count );
}
}