tests/AppBundle/Helper/ApiHelperTest.php 1 location
|
@@ 36-43 (lines=8) @@
|
| 33 |
|
} |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
public function testNamespaces() |
| 37 |
|
{ |
| 38 |
|
if ($this->container->getParameter('app.is_labs')) { |
| 39 |
|
$namespaces = $this->apiHelper->namespaces('enwiki'); |
| 40 |
|
$this->assertEquals($namespaces['1'], 'Talk'); |
| 41 |
|
$this->assertEquals($namespaces['2'], 'User'); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
tests/AppBundle/Helper/LabsHelperTest.php 1 location
|
@@ 38-46 (lines=9) @@
|
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
public function testDatabasePrepare() |
| 39 |
|
{ |
| 40 |
|
if ($this->container->getParameter('app.is_labs')) { |
| 41 |
|
// When using Labs. |
| 42 |
|
$dbVales = $this->labsHelper->databasePrepare('en.wikipedia'); |
| 43 |
|
$this->assertEquals('enwiki', $dbVales['dbName']); |
| 44 |
|
$this->assertEquals('https://en.wikipedia.org', $dbVales['url']); |
| 45 |
|
} |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
public function testNormalizeProject() |
| 49 |
|
{ |