Make WordPress Core

Ticket #55078: 55078.5.diff

File 55078.5.diff, 625 bytes (added by SergeyBiryukov, 3 years ago)
  • tests/phpunit/tests/ajax/AddTag.php

     
    3838                        unset( $e );
    3939                }
    4040
     41                // The response message is in the `data` property in WP 5.9.
    4142                $this->assertSame( $expected, (string) $this->get_xml_response_taxonomy()->response_data );
     43                // The response message is in the `supplemental->notice` property in WP 6.0+.
     44                $this->assertSame( $expected, (string) $this->get_xml_response_taxonomy()->supplemental->notice );
    4245        }
    4346
    4447        /**