Skip to content

Added tests for General_Block class.#1013

Merged
mauteri merged 1 commit intodevelopfrom
unit-tests
Feb 17, 2025
Merged

Added tests for General_Block class.#1013
mauteri merged 1 commit intodevelopfrom
unit-tests

Conversation

@mauteri
Copy link
Copy Markdown
Contributor

@mauteri mauteri commented Feb 16, 2025

Description of the Change

Closes #

How to test the Change

Changelog Entry

Added - New feature
Changed - Existing functionality
Deprecated - Soon-to-be removed feature
Removed - Feature
Fixed - Bug fix
Security - Vulnerability

Credits

Props @username, @username2, ...

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Feb 16, 2025

PR Summary

  • Class Name Update: The class previously known as Test_Dropdown_Item has been renamed to Test_Dropdown, improving its relevance.
  • Additional Unit Testing Class: A new test class called Test_General_Block has been introduced. This unit tests the operations inside the GatherPress\Core\Blocks\General_Block functionality.
  • Setup Hooks Verification: This pull request makes sure that the setup hooks function correctly within General_Block by including dedicated tests.
  • Login-Based Behaviour Tests: A series of tests have been implemented to evaluate how specific components behave depending on the user's login status, especially those related to login and registration URLs. These tests vary to include scenarios with logged-in and non-logged-in users.
  • Registration URL Behaviour Tests: New tests have been put in place to observe the behaviour of block content based on a user's registration status. This includes scenarios when registration is either disabled or enabled.

@mauteri mauteri marked this pull request as ready for review February 17, 2025 01:51
@mauteri mauteri merged commit e3e6893 into develop Feb 17, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant