-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Revert "EntityId: Hard-deprecate Serializable methods""
- Loading branch information
Showing
9 changed files
with
8 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
namespace Wikibase\DataModel\Tests\Entity; | ||
|
||
use InvalidArgumentException; | ||
use MediaWikiUnitTestCase; | ||
use ReflectionClass; | ||
use Wikibase\DataModel\Entity\EntityId; | ||
use Wikibase\DataModel\Entity\ItemId; | ||
|
@@ -22,7 +21,7 @@ | |
* @author Jeroen De Dauw < [email protected] > | ||
* @author John Erling Blad < [email protected] > | ||
*/ | ||
class EntityIdTest extends MediaWikiUnitTestCase { | ||
class EntityIdTest extends \PHPUnit\Framework\TestCase { | ||
|
||
public static function instanceProvider() { | ||
$ids = []; | ||
|
@@ -74,9 +73,6 @@ public static function deserializationCompatibilityProvider(): array { | |
* @dataProvider deserializationCompatibilityProvider | ||
*/ | ||
public function testDeserializationCompatibility( $expected, $serialization ) { | ||
if ( str_starts_with( $serialization, 'C:' ) ) { | ||
$this->expectDeprecationAndContinue( '/::unserialize/' ); | ||
} | ||
$this->assertEquals( | ||
$expected, | ||
unserialize( $serialization ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
namespace Wikibase\DataModel\Tests\Entity; | ||
|
||
use InvalidArgumentException; | ||
use MediaWikiUnitTestCase; | ||
use Wikibase\DataModel\Entity\ItemId; | ||
|
||
/** | ||
|
@@ -15,7 +14,7 @@ | |
* @license GPL-2.0-or-later | ||
* @author Jeroen De Dauw < [email protected] > | ||
*/ | ||
class ItemIdTest extends MediaWikiUnitTestCase { | ||
class ItemIdTest extends \PHPUnit\Framework\TestCase { | ||
|
||
/** | ||
* @dataProvider idSerializationProvider | ||
|
@@ -87,7 +86,6 @@ public function testGetEntityType() { | |
|
||
public function testSerialize() { | ||
$id = new ItemId( 'Q1' ); | ||
$this->expectDeprecationAndContinue( '/ItemId::serialize/' ); | ||
$this->assertSame( 'Q1', $id->serialize() ); | ||
} | ||
|
||
|
@@ -96,7 +94,6 @@ public function testSerialize() { | |
*/ | ||
public function testUnserialize( $json, $expected ) { | ||
$id = new ItemId( 'Q1' ); | ||
$this->expectDeprecationAndContinue( '/ItemId::unserialize/' ); | ||
$id->unserialize( $json ); | ||
$this->assertSame( $expected, $id->getSerialization() ); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters