Completed
Push — master ( 118804...eea786 )
by Stephan
01:58
created

getPermittedSettings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace SRF\Tests\Integration\JSONScript;
4
5
use SMW\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest as SMWJsonTestCaseScriptRunnerTest;
6
7
/**
8
 * @see https://github.com/SemanticMediaWiki/SemanticMediaWiki/tree/master/tests#write-integration-tests-using-json-script
9
 *
10
 * `JsonTestCaseScriptRunner` provisioned by SMW is a base class allowing to use a JSON
11
 * format to create test definitions with the objective to compose "real" content
12
 * and test integration with MediaWiki, Semantic MediaWiki, and Scribunto.
13
 *
14
 * @group SRF
15
 * @group SMWExtension
16
 *
17
 * @license GNU GPL v2+
18
 * @since 2.5
19
 *
20
 * @author Stephan Gambke
21
 */
22
class JsonTestCaseScriptRunnerTest extends SMWJsonTestCaseScriptRunnerTest {
23
24
	/**
25
	 * @see \SMW\Tests\JsonTestCaseScriptRunner::getTestCaseLocation
26
	 * @return string
27
	 */
28
	protected function getTestCaseLocation() {
29
		return __DIR__ . '/TestCases';
30
	}
31
32
	/**
33
	 * @return string[]
34
	 * @since 3.0
35
	 */
36
	protected function getPermittedSettings() {
37
		$settings = parent::getPermittedSettings();
38
39
		$settings[] = 'srfgMapProvider';
40
41
		return $settings;
42
	}
43
44
}
45