Using the same login for two different WordPress sites on the same domain

Consider this scenario. You have a WordPress site with a large user base set up on a domain. Lets call it iwishicouldcodebetter.com (because test.com and example.com are already taken). Over time you get sick of answering emails asking you how to use your site. You add a documentation site at documents.iwishicouldcodebetter.com and fill it with … Continue reading Using the same login for two different WordPress sites on the same domain

Advertisements

Testing methods that redirect with PHPUnit

Having mastered the ability to cause time to stand still, the next challenge I faced while writing what are probably technically not unit tests, was a lack of direction, or rather too much direction. Consider something like this: So far so good, if the user has the correct capabilities they can view the page. If … Continue reading Testing methods that redirect with PHPUnit

Overriding time() when unit testing with PHPUnit

Over the last year or so, I've discovered the wonderful world of Unit Testing. In a slightly verbose nutshell, Unit Testing involves: Trying to get PHPUnit installed (considerably easier for me on VVV than XAMPP btw) Finally getting it to work, but not quite being sure how. Reading some tutorials that get you up to … Continue reading Overriding time() when unit testing with PHPUnit