We have just released WordPress MVC version 1.0.7, this article will also cover minor changes done in 1.0.5 and 1.0.6.


Unit testing

WordPress unit testing has always been a pain in the @##. Thankfully the framework simplifies everything in this regard, from downloading the WordPress Test Suite and putting all the pieces together for a seamless testing experience.

Source

Read more about testing here.


Comment models

Comment data models can now be created via an Ayuco command.


Override configuration per environments

Configuration settings can be overwritten inside the wp-config.php file. Allowing for multi-environment configurations (learn more here).


Software license

Software license can now be defined during setup or using the set command (learn more here).


Migrating from older versions

To migrate to v1.0.7 you will need to make the following changes.

Ayuco file

Your ayuco file’s WP_CONTENT_DIR and ABSPATH must be defined as follow:

if ( ! defined( 'WP_CONTENT_DIR' ) ) define( 'WP_CONTENT_DIR', __DIR__ . '/../../' );
if ( ! defined( 'ABSPATH' ) ) define( 'ABSPATH', WP_CONTENT_DIR . '/../' );

See the source file.

.gitignore file

Your .gitignore file should ignore the following:

phpunit.json

See the source file.

License configuration key

Your app/Config/app.php file should include a license configuration key.

See the source file.

Use the Ayuco to set a license:

php ayuco set license