Make WordPress Core


Ignore:
Timestamp:
03/19/2023 12:03:30 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Use the data_ prefix for various data provider methods.

This aims to bring more consistency to the test suite, as the vast majority of data providers already use that prefix.

Includes moving some data providers next to the tests they are used in.

Follow-up to [55464].

See #57841.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/doEnclose.php

    r55337 r55562  
    2929     * @since 5.3.0
    3030     *
    31      * @dataProvider data_test_do_enclose
     31     * @dataProvider data_do_enclose
    3232     */
    3333    public function test_function_with_explicit_content_input( $content, $expected ) {
     
    4545     * @since 5.3.0
    4646     *
    47      * @dataProvider data_test_do_enclose
     47     * @dataProvider data_do_enclose
    4848     */
    4949    public function test_function_with_implicit_content_input( $content, $expected ) {
     
    7373     * }
    7474     */
    75     public function data_test_do_enclose() {
     75    public function data_do_enclose() {
    7676        return array(
    7777            'null'                  => array(
     
    145145     */
    146146    public function test_function_should_delete_enclosed_link_when_no_longer_in_post_content() {
    147         $data = $this->data_test_do_enclose();
     147        $data = $this->data_do_enclose();
    148148
    149149        // Create a post with a single movie link.
     
    179179     */
    180180    public function test_function_should_support_post_object_input() {
    181         $data = $this->data_test_do_enclose();
     181        $data = $this->data_do_enclose();
    182182
    183183        $post_object = self::factory()->post->create_and_get(
     
    199199     */
    200200    public function test_function_enclosure_links_should_be_filterable() {
    201         $data = $this->data_test_do_enclose();
     201        $data = $this->data_do_enclose();
    202202
    203203        $post_id = self::factory()->post->create(
Note: See TracChangeset for help on using the changeset viewer.