Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
tlovett1 committed Dec 8, 2017
1 parent afaebe6 commit e87079e
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,35 +71,20 @@ add_filter( 'my_srm_redirect_loop_filter', '__return_true' );

#### Setup
Follow the configuration instructions above to setup the plugin. I recommend developing the plugin locally in an
environment such as [Varying Vagrant Vagrants](https://github.com/Varying-Vagrant-Vagrants/VVV).
environment such as [WP Local Docker](https://github.com/10up/wp-local-docker).

#### Translation
Safe Redirect Manager has a [.pot file](https://github.com/tlovett1/Safe-Redirect-Manager/blob/master/languages/safe-redirect-manager.pot)
containing strings ready for translation. You can use a program like [POedit](http://poedit.net) to generate .po/.mo
files for your language.
Safe Redirect Manager has a [.pot file](https://github.com/tlovett1/Safe-Redirect-Manager/blob/master/lang/safe-redirect-manager.pot)
containing strings ready for translation.

#### Testing
Within the terminal change directories to the plugin folder. Initialize your unit testing environment by running the
following command:

For VVV users:
```bash
bash bin/install-wp-tests.sh wordpress_test root root localhost latest
bash bin/install-wp-tests.sh database username password host version
```

For VIP Quickstart users:
```bash
bash bin/install-wp-tests.sh wordpress_test root '' localhost latest
```

where:

* wordpress_test is the name of the test database (all data will be deleted!)
* root is the MySQL user name
* root is the MySQL user password (if you're running VVV). Blank if you're running VIP Quickstart.
* localhost is the MySQL server host
* latest is the WordPress version; could also be 3.7, 3.6.2 etc.

Run the plugin tests:
```bash
phpunit
Expand Down

0 comments on commit e87079e

Please sign in to comment.