[wp-trac] [WordPress Trac] #56617: WordPress database error when running PHPUnit tests

WordPress Trac noreply at wordpress.org
Sun Oct 9 16:09:39 UTC 2022


#56617: WordPress database error when running PHPUnit tests
----------------------------------------+---------------------
 Reporter:  bjorsch                     |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  6.1
Component:  Build/Test Tools            |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-testing-info has-patch  |     Focuses:
----------------------------------------+---------------------

Comment (by SergeyBiryukov):

 Replying to [comment:10 costdev]:
 > Looks like this change needs to be made upstream in
 [https://github.com/WordPress/gutenberg/blob/8bfea7fc307155747dd20f40b7500bf5083a57d4/packages
 /block-library/src/template-part/index.php#L191 this file], which seems to
 now return an array during installation and just needs to be backported.

 Right, the change was made upstream in
 [https://github.com/WordPress/gutenberg/pull/44584 PR 44584], as noted in
 comment:8. Since the package version has not been bumped yet, the check
 for [https://github.com/WordPress/wordpress-
 develop/actions/runs/3210963291/jobs/5248789186#step:14:1 version-
 controlled file modifications] fails, which I think is expected.

 What I did not expect, however, is for unit tests to
 [https://github.com/WordPress/wordpress-
 develop/actions/runs/3210963288/jobs/5250168661#step:19:16 fail with a
 fatal error] on PHP 8.0+, so I guess this needs more investigation.

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


More information about the wp-trac mailing list