summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2021-07-19 15:20:22 -0400
committerBrian Evans <grknight@gentoo.org>2021-07-19 15:20:22 -0400
commit9f092345e6bbecfde8c19e6d1490a6031a35f61f (patch)
tree2abb2398cd0df686e8608e15097ddc58b8995615 /MLEB/Translate/tests/phpunit/TranslationStashStorageTest.php
parentOAuth: Update for fixes and security (diff)
downloadextensions-9f092345e6bbecfde8c19e6d1490a6031a35f61f.tar.gz
extensions-9f092345e6bbecfde8c19e6d1490a6031a35f61f.tar.bz2
extensions-9f092345e6bbecfde8c19e6d1490a6031a35f61f.zip
Update to MLEB 2021.06
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/Translate/tests/phpunit/TranslationStashStorageTest.php')
-rw-r--r--MLEB/Translate/tests/phpunit/TranslationStashStorageTest.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/MLEB/Translate/tests/phpunit/TranslationStashStorageTest.php b/MLEB/Translate/tests/phpunit/TranslationStashStorageTest.php
deleted file mode 100644
index e7a51fa5..00000000
--- a/MLEB/Translate/tests/phpunit/TranslationStashStorageTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/**
- * @file
- * @author Niklas Laxström
- * @license GPL-2.0-or-later
- */
-
-/**
- * @group Database
- */
-class TranslationStashStorageTest extends MediaWikiIntegrationTestCase {
-
- public function testAdd() {
- $storage = new TranslationStashStorage( wfGetDB( DB_MASTER ) );
-
- $translation1 = new StashedTranslation(
- User::newFromId( 1 ),
- Title::makeTitle( NS_MAIN, __METHOD__ ),
- 'test value',
- [ 'kissa', 'kala' ]
- );
-
- $translation2 = new StashedTranslation(
- User::newFromId( 2 ),
- Title::makeTitle( NS_MAIN, __METHOD__ ),
- 'test value 2',
- [ 'kissa', 'kala' ]
- );
-
- $storage->addTranslation( $translation1 );
- $storage->addTranslation( $translation2 );
-
- $ret = $storage->getTranslations( User::newFromId( 1 ) );
- $this->assertCount( 1, $ret, 'One stashed translation for this user' );
-
- // AssertSame required same reference, assert equals only same content
- $this->assertEquals( $translation1, $ret[0], 'Data roundtrips' );
- }
-}