@@ -122,6 +122,9 @@ discard block |
||
122 | 122 | ); |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param CachedFactbox $instance |
|
127 | + */ |
|
125 | 128 | public function assertPreProcess( $expected, $result, $outputPage, $instance ) { |
126 | 129 | |
127 | 130 | if ( $expected['text'] ) { |
@@ -150,6 +153,9 @@ discard block |
||
150 | 153 | } |
151 | 154 | } |
152 | 155 | |
156 | + /** |
|
157 | + * @param CachedFactbox $instance |
|
158 | + */ |
|
153 | 159 | public function assertPostProcess( $expected, $result, $outputPage, $instance ) { |
154 | 160 | |
155 | 161 | $this->assertEquals( |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use SMW\DIWikiPage; |
6 | 6 | use SMW\SemanticData; |
7 | - |
|
8 | 7 | use Title; |
9 | - |
|
10 | 8 | use RuntimeException; |
11 | 9 | |
12 | 10 | /** |
@@ -6,15 +6,12 @@ |
||
6 | 6 | use SMW\Tests\Utils\Mock\MockObjectBuilder; |
7 | 7 | use SMW\Tests\Utils\Mock\CoreMockObjectRepository; |
8 | 8 | use SMW\Tests\Utils\Mock\MediaWikiMockObjectRepository; |
9 | - |
|
10 | 9 | use SMW\ApplicationFactory; |
11 | -use SMW\TableFormatter; |
|
12 | 10 | use SMW\ParserData; |
13 | 11 | use SMW\Factbox\Factbox; |
14 | 12 | use SMW\DIProperty; |
15 | 13 | use SMW\DIWikiPage; |
16 | 14 | use SMW\SemanticData; |
17 | - |
|
18 | 15 | use ReflectionClass; |
19 | 16 | use ParserOutput; |
20 | 17 | use Title; |
@@ -164,6 +164,11 @@ |
||
164 | 164 | } ); |
165 | 165 | } |
166 | 166 | |
167 | + /** |
|
168 | + * @param string $field |
|
169 | + * @param string $internalType |
|
170 | + * @param \Closure $definition |
|
171 | + */ |
|
167 | 172 | protected function assertInternalArrayStructure( $setup, $result, $field, $internalType, $definition ) { |
168 | 173 | |
169 | 174 | if ( isset( $setup[$field] ) && $setup[$field] ) { |
@@ -3,14 +3,10 @@ |
||
3 | 3 | namespace SMW\Tests\MediaWiki\Api; |
4 | 4 | |
5 | 5 | use SMW\Tests\Utils\UtilityFactory; |
6 | -use SMW\Tests\Utils\Mock\MockTitle; |
|
7 | - |
|
8 | 6 | use SMW\MediaWiki\Api\BrowseBySubject; |
9 | 7 | use SMW\ApplicationFactory; |
10 | 8 | use SMW\DIWikiPage; |
11 | 9 | |
12 | -use Title; |
|
13 | - |
|
14 | 10 | /** |
15 | 11 | * @covers \SMW\MediaWiki\Api\BrowseBySubject |
16 | 12 | * @group semantic-mediawiki |
@@ -2,9 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Tests\MediaWiki\Api; |
4 | 4 | |
5 | -use SMW\Tests\Utils\UtilityFactory; |
|
6 | 5 | use SMW\MediaWiki\Api\PropertyListByApiRequest; |
7 | -use SMW\ApplicationFactory; |
|
8 | 6 | use SMW\DIProperty; |
9 | 7 | |
10 | 8 | /** |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\MediaWiki; |
4 | 4 | |
5 | 5 | use SMW\MediaWiki\EditInfoProvider; |
6 | -use SMW\Tests\Utils\Mock\MockTitle; |
|
7 | - |
|
8 | 6 | use ParserOutput; |
9 | 7 | |
10 | 8 | /** |
@@ -3,12 +3,9 @@ |
||
3 | 3 | namespace SMW\Tests\MediaWiki\Hooks; |
4 | 4 | |
5 | 5 | use SMW\Tests\Utils\Mock\MockTitle; |
6 | - |
|
7 | 6 | use SMW\MediaWiki\Hooks\ArticlePurge; |
8 | 7 | use SMW\Settings; |
9 | -use SMW\Factbox\FactboxCache; |
|
10 | 8 | use SMW\ApplicationFactory; |
11 | - |
|
12 | 9 | use WikiPage; |
13 | 10 | |
14 | 11 | /** |
@@ -4,12 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use SMW\Tests\Utils\UtilityFactory; |
6 | 6 | use SMW\Tests\Utils\Mock\MockTitle; |
7 | - |
|
8 | 7 | use SMW\MediaWiki\Hooks\InternalParseBeforeLinks; |
9 | - |
|
10 | 8 | use SMW\ApplicationFactory; |
11 | 9 | use SMW\Settings; |
12 | - |
|
13 | 10 | use Title; |
14 | 11 | |
15 | 12 | /** |
@@ -4,12 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use SMW\Tests\Utils\UtilityFactory; |
6 | 6 | use SMW\Tests\Utils\Mock\MockTitle; |
7 | - |
|
8 | 7 | use SMW\MediaWiki\Hooks\ParserAfterTidy; |
9 | - |
|
10 | 8 | use SMW\ApplicationFactory; |
11 | -use SMW\Settings; |
|
12 | - |
|
13 | 9 | use Title; |
14 | 10 | |
15 | 11 | /** |
@@ -4,14 +4,11 @@ |
||
4 | 4 | |
5 | 5 | use SMW\Tests\Utils\UtilityFactory; |
6 | 6 | use SMW\Tests\Utils\Mock\MockTitle; |
7 | - |
|
8 | 7 | use SMW\PropertyAnnotator\CategoryPropertyAnnotator; |
9 | 8 | use SMW\PropertyAnnotator\NullPropertyAnnotator; |
10 | 9 | use SMW\DIWikiPage; |
11 | 10 | use SMW\ApplicationFactory; |
12 | -use SMW\Settings; |
|
13 | 11 | use SMW\ParserData; |
14 | - |
|
15 | 12 | use ParserOutput; |
16 | 13 | |
17 | 14 | /** |