[wp-trac] [WordPress Trac] #42672: Unexpected incorrect usage notice for wpdb::prepare in wordpress test lib

WordPress Trac noreply at wordpress.org
Thu Nov 23 13:20:04 UTC 2017


#42672: Unexpected incorrect usage notice for wpdb::prepare in wordpress test lib
------------------------------+------------------------------
 Reporter:  skarabeq          |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  4.9
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------
Changes (by swissspidy):

 * severity:  blocker => normal


Comment:

 > Failed asserting that an array is empty.

 That doesn't match the assertion `$this->assertTrue(is_int($category) ?
 true : false);` (which btw should just be
 `$this->assertTrue(is_int($category));` or `$this->assertInternalType(
 'int', $category );`).

 Are you sure the error is caused by this method?

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


More information about the wp-trac mailing list