WordPress.org

Make WordPress Core

Ticket #43880: 43880.3.diff

File 43880.3.diff, 544 bytes (added by lbenicio, 2 years ago)

move unit test to the correct place

  • tests/phpunit/tests/functions/anonymization.php

    diff --git a/tests/phpunit/tests/functions/anonymization.php b/tests/phpunit/tests/functions/anonymization.php
    index a5c9c8af15..1f5fc7db39 100644
    a b class Tests_Functions_Anonymization extends WP_UnitTestCase { 
    208208                );
    209209        }
    210210
     211        /**
     212         * Test user anonymization`.
     213         */
     214        public function test_anonymize_user() {
     215                $anonymous = _wp_privacy_get_anonymous_user_id();
     216                $this->assertGreaterThanOrEqual(0, $anonymous);
     217        }
     218