Skip to content

Instantly share code, notes, and snippets.

@martarf
martarf / wp-unit-test.md
Last active June 15, 2017 11:44
Wordpress Plugin Unit Tests

WP PLUGIN UNIT TEST

You will need svn, PHPUnit and wp-cli (they are provided by VVV). Make sure you have them installed.

###1. Set up

Initialize your testing environment using install-wp-tests.sh script.This script installs a copy of Wordpress in the /tmp directory (by default) as well as the Wordpress unit testing tools. Then it creates the specified database to be used while running tests.

@martarf
martarf / Configure-ssl.md
Last active August 29, 2015 14:25
Reminder of how-to configure ssl in Apache on Yosemite

Create a self-signed SSL Certificate

Generate key and csr:

openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr