| Current File : /home/jvzmxxx/wiki1/extensions/Wikibase/repo/tests/phpunit/includes/Api/SetLabelTest.php |
<?php
namespace Wikibase\Test\Repo\Api;
/**
* @covers Wikibase\Repo\Api\SetLabel
* @covers Wikibase\Repo\Api\ModifyTerm
* @covers Wikibase\Repo\Api\ModifyEntity
*
* @group Database
* @group medium
*
* @group API
* @group Wikibase
* @group WikibaseAPI
* @group WikibaseRepo
* @group SetLabelTest
* @group LanguageAttributeTest
* @group BreakingTheSlownessBarrier
*
* @license GPL-2.0+
* @author Addshore
*/
class SetLabelTest extends ModifyTermTestCase {
private static $hasSetup;
protected function setUp() {
parent::setUp();
self::$testAction = 'wbsetlabel';
if ( !isset( self::$hasSetup ) ) {
$this->initTestEntities( array( 'Empty' ) );
}
self::$hasSetup = true;
}
/**
* @dataProvider provideData
*/
public function testSetLabel( $params, $expected ) {
self::doTestSetTerm( 'labels', $params, $expected );
}
/**
* @dataProvider provideExceptionData
*/
public function testSetLabelExceptions( $params, $expected ) {
self::doTestSetTermExceptions( $params, $expected );
}
}