aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/languages/LanguageSlTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/languages/LanguageSlTest.php')
-rw-r--r--tests/phpunit/includes/languages/LanguageSlTest.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/phpunit/includes/languages/LanguageSlTest.php b/tests/phpunit/includes/languages/LanguageSlTest.php
index ab5d0efa7afd..f99445a7db85 100644
--- a/tests/phpunit/includes/languages/LanguageSlTest.php
+++ b/tests/phpunit/includes/languages/LanguageSlTest.php
@@ -43,4 +43,17 @@ class LanguageSlTest extends LanguageClassesTestCase {
[ 'one', 201 ],
];
}
+
+ /**
+ * @dataProvider provideConvertGrammar
+ */
+ public function testConvertGrammar( string $word, string $case, string $expected ): void {
+ $this->assertSame( $expected, $this->getLang()->convertGrammar( $word, $case ) );
+ }
+
+ public static function provideConvertGrammar(): iterable {
+ yield [ 'word', 'mestnik', 'o word' ];
+ yield [ 'word', 'orodnik', 'z word' ];
+ yield [ 'word', 'imenovalnik', 'word' ];
+ }
}