Jeroen De Dauw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/78216


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

Get rid of dumb depreacted method usage

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


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/16/78216/1

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: newchange
Gerrit-Change-Id: I35feec7cbc986e047fa996c9d239cf5ad3ef1ebd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com>

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

Reply via email to