Unit Testing
A demo plugin for testing WordPress plugin development initialization workflow.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/oberonlai/unit-testing/archive/refs/heads/main.zipUnit Testing Plugin
A demo WordPress plugin for testing the plugin development initialization workflow.
Features
- Custom shortcode:
[unit_testing_demo] - REST API endpoint:
/wp-json/unit-testing/v1/demo - Custom post type: Demo Items
- Admin menu page
- PSR-4 autoloading ready
Installation
- Upload the plugin files to
/wp-content/plugins/unit-testing/ - Activate the plugin through the 'Plugins' menu in WordPress
- Visit the 'Unit Testing' menu in the admin dashboard
Usage
Shortcode
Use the shortcode in any post or page:
[unit_testing_demo title="My Title" content="My custom content"]
REST API
Access the demo endpoint:
GET /wp-json/unit-testing/v1/demo
Custom Post Type
Create and manage demo items through the WordPress admin.
Development
This plugin is set up for testing the WordPress plugin development initialization workflow.
License
GPL v2 or later