Make WordPress Core


Ignore:
Timestamp:
10/03/2026 04:42:03 PM (6 weeks ago)
Author:
lancewillett
Message:

Tests: Document value comparisons in option tests.

Explain why option and transient tests retain assertEquals() for object values and the differing empty permalink defaults on single-site and multisite installations.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/13945

Props noruzzaman.
See #64895.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/option/siteOption.php

    r63613 r64078  
    201201                $value->bar = true;
    202202                add_site_option( $key, $value );
     203                // Keep assertEquals() because the objects are intentionally compared by value.
    203204                $this->assertEquals( $value, get_site_option( $key ) );
    204205        }
Note: See TracChangeset for help on using the changeset viewer.