Completed
Push — master ( 1980e6...750378 )
by
unknown
04:49
created

onUnitTestsList()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace WikibaseQuality\ExternalValidation;
4
5
use DatabaseUpdater;
6
7
final class WikibaseQualityExternalValidationHooks {
8
9
	/**
10
	 * @param DatabaseUpdater $updater
11
	 *
12
	 * @return bool
13
	 */
14
	public static function onCreateSchema( DatabaseUpdater $updater ) {
15
		$updater->addExtensionTable( 'wbqev_dump_information', __DIR__ . '/sql/create_wbqev_dump_information.sql' );
16
		$updater->addExtensionTable( 'wbqev_external_data', __DIR__ . '/sql/create_wbqev_external_data.sql' );
17
		$updater->addExtensionTable( 'wbqev_identifier_properties', __DIR__ . '/sql/create_wbqev_identifier_properties.sql' );
18
19
		return true;
20
	}
21
22
	public static function onUnitTestsList( &$paths ) {
23
		$paths[] = __DIR__ . '/tests/phpunit';
24
		return true;
25
	}
26
27
}
28