Make WordPress Core

Opened 5 weeks ago

Last modified 5 weeks ago

#66010 new defect (bug)

tests for _get_cron_lock

Reported by: pbearne Owned by:
Priority: normal Milestone: Awaiting Review
Component: General Version:
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses: tests

Description


Change History (1)

This ticket was mentioned in ​PR #13344 on ​WordPress/wordpress-develop by ​@pbearne.


5 weeks ago
#1

  • Keywords has-patch has-unit-tests added

Adds PHPUnit coverage for _get_cron_lock().

Tests retrieval from the database, retrieval from the external object cache, and the default zero value when no lock exists.

Trac ticket: https://core.trac.wordpress.org/ticket/66010

AI Disclosure:

  • AI assistance: Yes
  • Tool(s): Junie (JetBrains)
  • Model(s): gemini-3-flash-preview
  • Used for: Code analysis, test implementation, and workflow management.
Note: See TracTickets for help on using tickets.