[wp-trac] [WordPress Trac] #54724: PHPunit tests should not load remote patterns

WordPress Trac noreply at wordpress.org
Mon Jan 3 18:09:45 UTC 2022


#54724: PHPunit tests should not load remote patterns
------------------------------+------------------------------
 Reporter:  Chouby            |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by costdev):

 @Chouby Can you confirm if adding this line to the top of the test
 method(s) prevents the deprecation notice(s)?

 {{{#!php
 add_filter( 'should_load_remote_block_patterns', '__return_false' );
 }}}

 If confirmed, this could be considered for addition either to the PHPUnit
 bootstrap file, or just in the test class, fixtures or methods as needed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54724#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list