We'll create fresh WordPress site with Server-Side Google Search installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This plugin adds Google Custom Search to your website, but unlike other plugins
operates on the server side, thus eliminating the need for JavaScript and
keeping the page size small.
The admin interface is based on that used by the [WP Google Search plugin]
(https://wordpress.org/plugins/wp-google-search/)
The interface with the Google API is based on Digital Collection Search by Jason Clark for Montana
State University.
This plugin uses wp-cli and PHPUnit for testing.
The tests require runkit for mocking functions.
Grab the latest source from github:
$ git clone [email protected]:aptivate/server-side-google-search.git
Install wp-cli
Set up runkit:
$ git clone https://github.com/zenovich/runkit.git
$ cd runkit
$ phpize
$ ./configure
$ sudo make install
Add the following lines to /etc/php5/cli/php.ini
:
extension=runkit.so
runkit.internal_override=1
Install the test WordPress environment:
cd server-side-google-search
bash bin/install-wp-tests.sh test_db_name db_user ‘db_password’ db_host version
where:
** test_db_name
is the name for your temporary test WordPress database
** db_user
is the database user name
** db_password
is the password
** db_host
is the database host (eg localhost
)
** version
is the version of WordPress (eg 4.2.2
or latest
)