#35965 closed enhancement (fixed)
Unit test for get_locale()
| Reported by: | realloc | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | I18N | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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
@
11 years ago
- Milestone Awaiting Review → 4.5
- Owner set to
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Unit tests for get_locale()