Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conversion PHPUnit into Kahlan test #17

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

MarikaBBB
Copy link

@MarikaBBB MarikaBBB commented Jan 17, 2025

Description:

  • The purpose of this PR is to convert use_atom_test.php to Kahaln , removing WP_Mock dependencies.
  • It replaces the test command from phpunit/phpunit to kahlan/kahlan: ^6.0 in composer.json and CI configuration. This ensure that only tests written in Kahlan will run after this PR is merged.

Testing instructions:

  • Before testing please check and update dependencies by running command line composer install
  • Then, run the command /vendor/bin/kahlan for testing.

@snim2
Copy link
Contributor

snim2 commented Jan 17, 2025

@MarikaBBB next steps:

  1. Update the CHANGELOG.md file, you can see the format for this file in the documentation here
  2. You can close the other PR
  3. Read about rebasing in Git:

@MarikaBBB MarikaBBB force-pushed the terstConversion branch 2 times, most recently from c417556 to c13a720 Compare January 20, 2025 18:10
@MarikaBBB MarikaBBB marked this pull request as ready for review January 20, 2025 18:13
use Dxw\Iguana\Extras\UseAtom;

describe('UseAtom', function () {
// initialisation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this comment


});

afterEach(function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we probably don't need this afterEach, see what happens if you remove it




// Check that this code runs to completion without errors
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the check that the code runs to completion because we've used expect() here

CHANGELOG.md Outdated
@@ -13,3 +13,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Earlier Releases]

Releases up to and including v1.0.0 predate this changelog, but see the [README](README.md) for summary of functionality.

## 2025-01-17
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we can say ## [Unreleased]

Copy link
Contributor

@snim2 snim2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comments!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants