Make WordPress Core

Changeset 57710


Ignore:
Timestamp:
02/26/2024 10:27:30 AM (5 months ago)
Author:
swissspidy
Message:

Tests: Update incorrect assertion message added in [57366].

Props david.binda.
Fixes #60358.

Location:
trunk/tests/phpunit/tests/rest-api
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/wpRestTemplateAutosavesController.php

    r57366 r57710  
    327327        $this->assertArrayHasKey( 'is_custom', $properties, 'is_custom key should exist in properties.' );
    328328        $this->assertArrayHasKey( 'parent', $properties, 'Parent key should exist in properties.' );
    329         $this->assertArrayHasKey( 'author_text', $properties, 'Parent key should exist in properties.' );
    330         $this->assertArrayHasKey( 'original_source', $properties, 'Parent key should exist in properties.' );
     329        $this->assertArrayHasKey( 'author_text', $properties, 'author_text key should exist in properties.' );
     330        $this->assertArrayHasKey( 'original_source', $properties, 'original_source key should exist in properties.' );
    331331    }
    332332
  • trunk/tests/phpunit/tests/rest-api/wpRestTemplateRevisionsController.php

    r57366 r57710  
    466466        $this->assertArrayHasKey( 'is_custom', $properties, 'is_custom key should exist in properties.' );
    467467        $this->assertArrayHasKey( 'parent', $properties, 'Parent key should exist in properties.' );
    468         $this->assertArrayHasKey( 'author_text', $properties, 'Parent key should exist in properties.' );
    469         $this->assertArrayHasKey( 'original_source', $properties, 'Parent key should exist in properties.' );
     468        $this->assertArrayHasKey( 'author_text', $properties, 'author_text key should exist in properties.' );
     469        $this->assertArrayHasKey( 'original_source', $properties, 'original_source key should exist in properties.' );
    470470    }
    471471
Note: See TracChangeset for help on using the changeset viewer.