WordPress/phpunit-test-runner

If cleanup.php doesn't fully wipe the DB, it can cause failures.

開放

#110 建立於 2020年2月25日

 (6 則留言) (0 個反應) (0 位負責人)PHP (77 個分叉)github user discovery
ContributorDayWCUS26enhancementhelp wanted

倉庫指標

星標
 (77 顆星)
PR 合併指標
 (平均合併 5天 16小時) (30 天內合併 1 個 PR)

描述

There's really no other place to post these errors. I get them running the normal tests. Nothing on my end changed that I know of. I've tried upgrading all the things.

  1. Tests_User_Capabilities::test_all_caps_of_users_are_being_tested User with administrator role has capabilities that aren't being tested Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
+    59 => 'export_others_personal_data'
+    60 => 'erase_others_personal_data'
+    61 => 'manage_privacy_options'
 )

/phpunit-test-runner/wp-test-runner/tests/phpunit/tests/user/capabilities.php:381

  1. Tests_User_Capabilities::testPrimitiveCapsTestsAreCorrect These primitive capabilities are not tested
Failed asserting that Array &0 (
    59 => 'export_others_personal_data'
    60 => 'erase_others_personal_data'
    61 => 'manage_privacy_options'
) is identical to Array &0 ().

/phpunit-test-runner/wp-test-runner/tests/phpunit/tests/user/capabilities.php:423

I'm not sure how/where this broke (I was out for a while)

貢獻者指南