WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/28/2020 12:51:42 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Disable WPCS warnings for date_default_timezone_set() and current_time( 'timestamp' ) calls in Date/Time tests.

These calls are intentional and required for the tests.

See #49222.

File:
1 edited

Legend:

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

    r46657 r47118  
    999999            'id',
    10001000            $this->factory->category->create(
    1001                 [
     1001                array(
    10021002                    'parent' => $old_parent_term->term_id,
    1003                 ]
     1003                )
    10041004            ),
    10051005            'category'
Note: See TracChangeset for help on using the changeset viewer.