Skip to content

publishpress/PublishPress-Future

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PublishPress-Future

VIP Scans and other code checks Unit and Integration Tests

How to install?

You can download a built package from releases page and install it on your WordPress sites by uploading the zip file.

How to build a package?

Requirements

  • Docker

Building from inside the dev-workspace

To enter the development workspace, run the following command from the root of the repository:

dev-workspace/run

From inside the dev-workspace you can run the build or any other composer script. Check composer help for a list of available commands.

composer update
composer build

Building JS scripts

composer build:js

Building Language files

composer build:lang

Building without entering the dev-workspace

dev-workspace/run composer build

Testing

Requirements

  • Docker
  • PHP
  • Composer

Tests will run inside docker containers, but all the commands below should be executed outside the dev-workspace.

Starting the test containers

Before running any test you need to start the test container:

composer test:up

For stopping, you can use:

composer test:down

Test files will be cached inside the dev-workspace/.cache directory.

Running all tests

Only Unit and Integration tests are healthy for now. You might find other types of tests but they need refactoring.

composer test:all

Running Unit tests

composer test Unit

Running Integration tests

composer test Integration

You also can run specific test file:

composer test tests/Unit/Framework/HooksTest.php

And for running only a specific test:

composer test tests/Unit/Framework/HooksTest.php:testAddAction

You can run any codeception command by executing:

composer codecept <commands>

License

License: GPLv2 or later

About

This plugin was known as "Post Expirator", and now it is called "PublishPress Future".

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 12