Merge "rdbms: avoid LoadBalancer::getConnection waste when using $groups"
[lhc/web/wiklou.git] / tests / phpunit / includes / utils / UIDGeneratorTest.php
index d335a93..6b81a66 100644 (file)
@@ -5,7 +5,7 @@ class UIDGeneratorTest extends PHPUnit\Framework\TestCase {
        use MediaWikiCoversValidator;
 
        protected function tearDown() {
-               // Bug: 44850
+               // T46850
                UIDGenerator::unitTestTearDown();
                parent::tearDown();
        }
@@ -14,8 +14,10 @@ class UIDGeneratorTest extends PHPUnit\Framework\TestCase {
         * Test that generated UIDs have the expected properties
         *
         * @dataProvider provider_testTimestampedUID
-        * @covers UIDGenerator::newTimestampedUID128
         * @covers UIDGenerator::newTimestampedUID88
+        * @covers UIDGenerator::getTimestampedID88
+        * @covers UIDGenerator::newTimestampedUID128
+        * @covers UIDGenerator::getTimestampedID128
         */
        public function testTimestampedUID( $method, $digitlen, $bits, $tbits, $hostbits ) {
                $id = call_user_func( [ UIDGenerator::class, $method ] );
@@ -78,6 +80,7 @@ class UIDGeneratorTest extends PHPUnit\Framework\TestCase {
 
        /**
         * @covers UIDGenerator::newUUIDv1
+        * @covers UIDGenerator::getUUIDv1
         */
        public function testUUIDv1() {
                $ids = [];
@@ -157,6 +160,7 @@ class UIDGeneratorTest extends PHPUnit\Framework\TestCase {
 
        /**
         * @covers UIDGenerator::newSequentialPerNodeIDs
+        * @covers UIDGenerator::getSequentialPerNodeIDs
         */
        public function testNewSequentialIDs() {
                $ids = UIDGenerator::newSequentialPerNodeIDs( 'test', 32, 5 );