#Getting started ##Test Environment Setup
- Import the Theme Unit Test Data.
- In
wp-config.php
, setWP_DEBUG
totrue
- Install the Developer Plugin, from which install the following:
- Theme Check
- Debug Bar
- Log Deprecated Notices
- Debogger
- Monster Widget
- WordPress Beta Tester
- Regenerate Thumbnails
##WordPress Setup Ensure that a few WordPress settings are modified in order to facilitate the Unit Theme Tests:
Settings -> General
: Set the Site Title to something fairly long, and set the Tagline to something even longer. These settings will facilitate testing how the Theme handles these values.Settings -> Reading
: Set "Blog pages show at most" to 5. This setting will ensure that index/archive pagination is triggered.Settings -> Discussion
:
- Enable Threaded Comments, at least 3 levels deep. This setting will facilitate testing of Theme comment list styling.
- Enable Break comments into pages, and set 5 comments per page. This setting will facilitate testing of Theme paginating link markup/styling.
Settings -> Media
: Ensure that no values are set for max width or height of Embedded media. This setting will facilitate testing of the Theme$content_width
setting/implementation.Settings -> Permalinks
: Ensure that a non-default permalink setting is selected, e.g. "Month and name". This setting will facilitate stepping through the Theme Unit Tests.- Create at least two Custom Menus
- Long Menu: all included pages
- Short Menu: a menu of 2-3 pages