Daniel Kinzler has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/366588 )
Change subject: Avoid use of EditEntity in test case
......................................................................
Avoid use of EditEntity in test case
Change-Id: I5aaeffca3df8b4209276a82605e132f02d0128f6
---
M tests/phpunit/mediawiki/Specials/SpecialNewLexemeTest.php
1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseLexeme
refs/changes/88/366588/1
diff --git a/tests/phpunit/mediawiki/Specials/SpecialNewLexemeTest.php
b/tests/phpunit/mediawiki/Specials/SpecialNewLexemeTest.php
index 2519c42..5e8fae8 100644
--- a/tests/phpunit/mediawiki/Specials/SpecialNewLexemeTest.php
+++ b/tests/phpunit/mediawiki/Specials/SpecialNewLexemeTest.php
@@ -198,10 +198,9 @@
$wikibaseRepo = WikibaseRepo::getDefaultInstance();
$existingItem = new Item( new ItemId( $itemId ) );
- $editEntityFactory = $wikibaseRepo->newEditEntityFactory()
- ->newEditEntity( new User(), $existingItem );
+ $store = $wikibaseRepo->getEntityStore();
- $editEntityFactory->attemptSave( '', EDIT_NEW, false );
+ $store->saveEntity( $existingItem, '', new User(), EDIT_UPDATE,
false );
}
}
--
To view, visit https://gerrit.wikimedia.org/r/366588
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5aaeffca3df8b4209276a82605e132f02d0128f6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseLexeme
Gerrit-Branch: master
Gerrit-Owner: Daniel Kinzler <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits