Skip to content

Commit

Permalink
Finally switch the Wikibase\Repo\Tests\… namespace to PSR-4
Browse files Browse the repository at this point in the history
This moves the last class. Note that this is used in PropertySuggester
as well as WikibaseQualityExternalValidation. Patches for both are already
uploaded.

Change-Id: I55412bf7cea1880a5e9e49634f9f6a893cc2aa80
  • Loading branch information
thiemowmde committed Jan 2, 2017
1 parent 316b20d commit 50aecf1
Show file tree
Hide file tree
Showing 58 changed files with 42 additions and 62 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"lib/maintenance/",
"repo/includes/",
"repo/maintenance/",
"repo/tests/phpunit/",
"repo/Wikibase.hooks.php"
],
"psr-4": {
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/BotEditTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use TestUser;
use Title;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* Tests for the ApiWikibase class.
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/CreateClaimTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Wikibase\DataModel\Entity\Item;
use Wikibase\DataModel\Entity\Property;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\CreateClaim
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/EditEntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Wikibase\DataModel\Services\Statement\StatementGuidParsingException;
use Wikibase\Lib\Store\StorageException;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\EditEntity
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/EditPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Wikibase\DataModel\Entity\Item;
use Wikibase\DataModel\Entity\ItemId;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;
use WikiPage;

/**
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/GetEntitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Wikibase\Repo\Tests\Api;

use ApiUsageException;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\GetEntities
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/LinkTitlesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Wikibase\Repo\Tests\Api;

use ApiUsageException;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\LinkTitles
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/Api/MergeItemsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use Wikibase\Repo\Validators\SnakValidator;
use Wikibase\Repo\Validators\TermValidatorFactory;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\EntityModificationTestHelper;
use Wikibase\Repo\Tests\EntityModificationTestHelper;
use Wikibase\Lib\Tests\MockRepository;

/**
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/ModifyTermTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Wikibase\Repo\Tests\Api;

use ApiUsageException;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* Test case for language attributes API modules.
Expand Down
3 changes: 1 addition & 2 deletions repo/tests/phpunit/includes/Api/PermissionsTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
namespace Wikibase\Repo\Tests\Api;

use ApiUsageException;
use Wikibase\Test\PermissionsHelper;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;
use Wikibase\Repo\Tests\PermissionsHelper;

/**
* Base class for permissions tests
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/RemoveClaimsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Wikibase\DataModel\Statement\StatementList;
use Wikibase\DataModel\Term\Fingerprint;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\RemoveClaims
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/RemoveQualifiersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Wikibase\DataModel\Snak\SnakList;
use Wikibase\DataModel\Statement\Statement;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\RemoveQualifiers
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/RemoveReferencesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Wikibase\DataModel\Snak\SnakList;
use Wikibase\DataModel\Statement\Statement;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\RemoveReferences
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/SetClaimTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Wikibase\DataModel\Snak\SnakList;
use Wikibase\DataModel\Statement\Statement;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\SetClaim
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/SetClaimValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Wikibase\Lib\EntityIdValueFormatter;
use Wikibase\Lib\SnakFormatter;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;
use WikiPage;

/**
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/SetQualifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Wikibase\DataModel\Statement\Statement;
use Wikibase\DataModel\Statement\StatementListProvider;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\SetQualifier
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/SetReferenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Wikibase\DataModel\Snak\SnakList;
use Wikibase\DataModel\Statement\Statement;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\SetReference
Expand Down
1 change: 0 additions & 1 deletion repo/tests/phpunit/includes/Api/SetSiteLinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Wikibase\DataModel\Entity\Item;
use Wikibase\DataModel\Entity\ItemId;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;

/**
* @covers Wikibase\Repo\Api\SetSiteLink
Expand Down
3 changes: 1 addition & 2 deletions repo/tests/phpunit/includes/Api/WikibaseApiTestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test\Repo\Api;
namespace Wikibase\Repo\Tests\Api;

use ApiTestCase;
use Exception;
Expand All @@ -12,7 +12,6 @@
use Title;
use ApiUsageException;
use User;
use Wikibase\Repo\Tests\Api\EntityTestHelper;
use Wikibase\Repo\WikibaseRepo;
use WikiPage;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use User;
use Wikibase\Repo\BabelUserLanguageLookup;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use User;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test\Repo;
namespace Wikibase\Repo\Tests;

use HashBagOStuff;
use MediaWiki\Site\MediaWikiPageNameNormalizer;
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/ChangeDispatcherTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use Diff\DiffOp\Diff\Diff;
use Diff\DiffOp\Diff\MapDiff;
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/ChangePrunerTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use InvalidArgumentException;
use MediaWikiTestCase;
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/ClaimSummaryBuilderTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use DataValues\StringValue;
use Diff\Comparer\ComparableComparer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Wikibase\DataModel\Entity\PropertyId;
use Wikibase\Repo\Content\EntityContentFactory;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\PermissionsHelper;
use Wikibase\Repo\Tests\PermissionsHelper;

/**
* @covers Wikibase\Repo\Content\EntityContentFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use Language;
use Wikibase\CopyrightMessageBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use InvalidArgumentException;
use PHPUnit_Framework_TestCase;
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/EditEntityTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use FauxRequest;
use MediaWikiTestCase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Test;
namespace Wikibase\Repo\Tests;

use PHPUnit_Framework_TestCase;
use Wikibase\DataModel\Services\EntityId\EntityIdFormatter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Test;
namespace Wikibase\Repo\Tests;

use PHPUnit_Framework_TestCase;
use Wikibase\DataModel\Services\EntityId\EntityIdFormatter;
Expand Down
4 changes: 1 addition & 3 deletions repo/tests/phpunit/includes/EntityModificationTestHelper.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use Deserializers\Deserializer;
use PHPUnit_Framework_Assert as Assert;
Expand All @@ -14,8 +14,6 @@
use Wikibase\Repo\WikibaseRepo;

/**
* EntityModificationTestHelper
*
* @license GPL-2.0+
* @author Daniel Kinzler
*/
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/EntityTypesTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Test;
namespace Wikibase\Repo\Tests;

use PHPUnit_Framework_TestCase;
use Wikibase\DataModel\Services\Lookup\LabelDescriptionLookup;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use Wikibase\DataModel\Term\Fingerprint;
use Wikibase\Repo\FingerprintSearchTextGenerator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Wikibase\Repo\Interactors\RedirectCreationInteractor;
use Wikibase\Repo\Store\EntityPermissionChecker;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\EntityModificationTestHelper;
use Wikibase\Repo\Tests\EntityModificationTestHelper;
use Wikibase\Lib\Tests\MockRepository;

/**
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/ItemDisambiguationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use MediaWikiTestCase;
use Title;
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/ItemMoveTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use MediaWiki\MediaWikiServices;
use TestSites;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use Wikibase\DataModel\Entity\Item;
use Wikibase\Repo\ItemSearchTextGenerator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use ValueValidators\Result;
use Wikibase\DataModel\Entity\Item;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use Language;
use OutputPage;
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/PermissionsHelper.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

/**
* @license GPL-2.0+
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/PidLockTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Test;
namespace Wikibase\Repo\Tests;

use PHPUnit_Framework_TestCase;
use Wikibase\Repo\PidLock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Repo\Test;
namespace Wikibase\Repo\Tests;

use DataTypes\DataType;
use DataTypes\DataTypeFactory;
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/PropertyInfoBuilderTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Test;
namespace Wikibase\Repo\Tests;

use DataValues\StringValue;
use Wikibase\DataModel\Entity\Property;
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/SiteLinkTargetProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Tests\Repo;
namespace Wikibase\Repo\Tests;

use HashSiteStore;
use PHPUnit_Framework_TestCase;
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/SnakFactoryTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Wikibase\Lib\Test;
namespace Wikibase\Repo\Tests;

use DataTypes\DataTypeFactory;
use DataValues\DataValueFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use Wikibase\Repo\Specials\SpecialMergeItems;
use Wikibase\Repo\Store\EntityPermissionChecker;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\EntityModificationTestHelper;
use Wikibase\Repo\Tests\EntityModificationTestHelper;
use Wikibase\Lib\Tests\MockRepository;

/**
Expand Down
Loading

0 comments on commit 50aecf1

Please sign in to comment.