Make constant for test language in NodaWikidataFetcherTest public, allowing reuse
This commit is contained in:
		| @@ -745,7 +745,7 @@ final class NodaWikidataFetcher { | |||||||
|         $languagesToFetch = $wikilinks = []; |         $languagesToFetch = $wikilinks = []; | ||||||
|         foreach ($checkagainstLanguage as $lang) { |         foreach ($checkagainstLanguage as $lang) { | ||||||
|  |  | ||||||
|             if (empty($data['labels'][$lang])) { |             if (empty($data['labels']) || empty($data['labels'][$lang])) { | ||||||
|                 continue; |                 continue; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -20,7 +20,7 @@ require_once __DIR__ . '/../../MDMysqli/test_connections.conf.php'; | |||||||
| final class NodaWikidataFetcherTest extends TestCase { | final class NodaWikidataFetcherTest extends TestCase { | ||||||
|  |  | ||||||
|     // Test for getting translations: Telugu |     // Test for getting translations: Telugu | ||||||
|     private const TEST_LANG = 'te'; |     public const TEST_LANG = 'te'; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Test to check whether the HTML page is correctly generated. |      * Test to check whether the HTML page is correctly generated. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user