Skip to content

Releases: lucatume/wp-browser

2.6.1

11 Jun 09:31
Compare
Choose a tag to compare

Fixed

  • ensure $_SERVER['REQUEST_TIME'] and $_SERVER['REQUEST_TIME_FLOAT'] are correctly set when running tests based on the Codeception\Test\WPTestCase class, fixes #417

2.6.0

08 Jun 12:27
Compare
Choose a tag to compare

Added

  • support, in WPTestCase, for the @runInSeparateProcess annotation to run test methods in separate PHP processes; fixes #410

2.5.7

02 Jun 12:42
Compare
Choose a tag to compare

Fixed

  • Codeception required version erroneously set in prev version of composer.json file

2.5.6

02 Jun 07:33
Compare
Choose a tag to compare

Added

  • check in the codecept init wpbrowser command to check and report missing Codeception 4.0 to the user during initialization, fixes #412

2.5.5

25 May 07:47
Compare
Choose a tag to compare

Changed

  • refactoring to pass phpstan level 1 and 2 checks.

2.5.4

22 May 10:08
Compare
Choose a tag to compare

Fixed

  • an issue with .env files handling that, when the vlucas/phpdotenv package is not required, would incorrectly set up the test environment.

Changed

  • some refactoring to pass phpstan level 0 checks.

2.5.3

15 May 10:21
Compare
Choose a tag to compare

Added

  • the WPDb.letCron configuration parameter to control whether wp-cron processes should be allowe to spawn during tests or not (new default).

Fixed

  • the WPDb module will set up the database to prevent wp-cron requests from being spawned during tests, fixes #363.
  • env file parsing issues reported, fixes #398.

Changed

  • following changes to how the WPDb module sets up the database at the start of tests (and between tests), wp-cron process will not be spawned during tests unless the WPDb.letCron configuration parameter is set to true.

2.5.2

13 May 09:56
Compare
Choose a tag to compare

Fixed

  • added Dotenv\Dotenv polyfill class to avoid back-compatibility issues w/ projects not requiring vlucas/phpdotenv explicitly and using env files for tests configuration.

2.5.1

13 May 08:13
Compare
Choose a tag to compare

Fixed

  • add function_exists check to avoid redefinition issues when wp-browser is used in two related packages (thanks @cliffordp)

2.5.0

11 May 17:09
Compare
Choose a tag to compare

Fixed

  • README.md file updates (thanks @szepeviktor)
  • src/tad/scripts fixes and refactorings (thanks @szepeviktor)
  • cron and admin AJAX query vars handling (thanks @Luc45)

Removed

  • gumlet/php-image-resize package requirement; runtime image modification in the WPDb::haveAttachmentInDatabase method will require it at runtime.
  • vlucas/phpdotenv package requirement; wp-browser will not use it internally, but Codeception will keep requiring it for dynamic parameter configuration.