The tag has no usage guidance.

learn more… | top users | synonyms

7
votes
1answer
150 views

Vagrant script to setup all the common PHP / WordPress version combinations

I am looking for a way to quickly and repeatedly set up testing / debugging environment for our plugin, most probably using Vagrant. Projects like VVV focus on a single-environment setup (or, a couple ...
3
votes
1answer
342 views

Can I get at WordPress code from inside a Selenium test?

I'm writing unit tests using PHPUnit and WP_UnitTestCase, and using Selenium for front-end testing. My Selenium test classes merrily click around my pages without trouble. What would be truly useful, ...
1
vote
1answer
221 views

Activate different theme for temporary preview

I wanted that when i access my site with specific parameter, my site used a different theme at that moment (only temporarily, to show only to me as a preview). I want it for test purposes. Is there ...
0
votes
1answer
27 views

How to properly maintain a testing version of a site?

At my place of work we host many sites that almost all run Wordpress. Some of them are changed quite frequently, and emply e-commerce solutions such as WooCommerce. Consequently, these sites also use ...
0
votes
1answer
51 views

Duplicate WordPress site to subdirectory but use same db?

I have tried to just copy the whole root folder into a subdirectory. I understand the .htaccess file has to be changed. But can't get it to work right. Is it something more than changing the htaccess ...
0
votes
1answer
60 views

How do you create a development site into a subdirectory of the live site?

I have a WordPress site at http://example.com and I want to create a clone development site at http://example.com/test. I want http://example.com/test to be its own root URL as well as the live one ...
0
votes
1answer
69 views

can I run the test suite without a web server?

I'm trying to set up a Test Driven Development environment and I was wondering if it's possible to run the WordPress test suite without a web server. I'm on a mac (10.7.5) and I've set up phpunit and ...
1
vote
0answers
31 views

How to run subversion and staging environments when running Wordpress

I come from a .NET world with custom solutions, where I am used to multiple staging environments and subversion for everything. I've been googling a lot, and have some questions on how handle highend ...
1
vote
0answers
39 views

WordPress Automatic Testing Probelm

After much trial and error. I've managed to get the automatic testing setup and running. I'm running a test on a plugin that has no code. It's just the plugin header. Just to make sure everything is ...
1
vote
0answers
73 views

How to split test a menu item

I have four links in my main navigation menu, which is displayed on every page of my site. Link 1 | Link 2 | Link 3 | Link 4 I have a form that once completed is a goal/conversion and redirects to a ...
0
votes
0answers
43 views

WP Unit tests error: WP_UnitTestCase not found

I installed PHPUnit, checked out the WordPress tests repository and set up the tests configuration. But when I try to run the unit tests on my test files (e.g: phpunit test-test.php), I get the ...
0
votes
0answers
54 views

How to use Wordpress methods (themes, plugins, context) with Behat?

My Wordpress project is running with a composer inside my plugin folder, just to test Behat a little bit, i'm not using Bedrock Wordpress yet. I can run Behat to do some behavior tests using the ...
0
votes
0answers
21 views

What is WP_MULTISITE and why it causes WP_UnitTestCase to create 404 page?

I'm using WP_UnitTestCase to create a post for unit test. I'm using WP_MULTISITE=1 on my CI and it causes create_post to create post type 404. $post_id = ...
0
votes
0answers
22 views

Unit Test ignores stubbed method second time around in a dataProvider

I am writing a sample unit test that checks a title of a post for a token and if it exists add the post to a category. https://gist.github.com/matstars/bebedbacedd7a85d8dc7 In my test for this I am ...
0
votes
0answers
22 views

What is a good way to test that plugin upgrades have completed properly?

I'm working to automate plugin upgrades across all my WordPress installs. Part of that process is making sure the plugins upgraded correctly, didn't introduce errors and don't cause new conflicts with ...