#35965 closed enhancement (fixed)
Unit test for get_locale()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
I wrote some tests for get_locale().
NB: The part from line 44 to 51 is hard to test since WP_LANG is predefined as an empty string in wp-tests-config.php
Attachments (1)
Change History (6)
#2
@
9 years ago
- Milestone changed from Awaiting Review to 4.5
- Owner set to boonebgorges
- Status changed from new to assigned
Thanks! I'm going to break it up into separate tests and add some tests for the multisite stuff.
For future reference, I don't think there's any reason for a @ticket
annotation if the only purpose of the ticket was to add unit tests. In other words: @ticket
is appropriate when referring to a bug that the test describes.
Note: See
TracTickets for help on using
tickets.
Unit tests for get_locale()