jenkins-bot has submitted this change and it was merged.

Change subject: Get rid of depreacted method usage
......................................................................


Get rid of depreacted method usage

Change-Id: I35feec7cbc986e047fa996c9d239cf5ad3ef1ebd
---
M lib/tests/phpunit/EntityLookupTest.php
1 file changed, 1 insertion(+), 9 deletions(-)

Approvals:
  Tobias Gritschacher: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/lib/tests/phpunit/EntityLookupTest.php 
b/lib/tests/phpunit/EntityLookupTest.php
index 7e8b40f..ae51e6b 100644
--- a/lib/tests/phpunit/EntityLookupTest.php
+++ b/lib/tests/phpunit/EntityLookupTest.php
@@ -66,17 +66,9 @@
 
                        $entities[2] = $item;
 
-                       $dataTypes = array(
-                               'string' => array(
-                                       'datavalue' => 'string'
-                               )
-                       );
-
-                       $dtf = new DataTypeFactory( $dataTypes );
-
                        $prop = Property::newEmpty();
                        $prop->setId( 753 );
-                       $prop->setDataType( $dtf->getType( "string" ) );
+                       $prop->setDataTypeId( "string" );
 
                        $entities[3] = $prop;
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/78216
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I35feec7cbc986e047fa996c9d239cf5ad3ef1ebd
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com>
Gerrit-Reviewer: Tobias Gritschacher <tobias.gritschac...@wikimedia.de>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to