Skip to content

Create Check_Context class #10

Closed

Description

@mehulkaklotar

Description

Check_Context class will be implemented to provide the context of the plugin being checked. An instance of the Check_context will be available for all checks classes that are run. This will extend the Plugin_Context class and contain all the same methods. This allows checks to use the Check_Context instance to retrieve useful information about the plugin being tested such as the plugin basename, path and URL.

Acceptance Criteria

  • The class file Check_Context.php exists within includes/Checker
  • Class should extend the Plugin_Context class
  • Methods for accessing plugin's main file, path, URL, basename should be there
  • PHPUnit tests covering
    • Instance of the class is same as compared to Plugin_Context instance

Activity

  1. moved this from Backlog to Definition in Plugin Checkon Nov 29, 2022
  2. moved this from Definition to Backlog in Plugin Checkon Dec 7, 2022
  3. moved this from Backlog to Definition in Plugin Checkon Dec 7, 2022
  4. self-assigned this
    on Dec 7, 2022
  5. added this to the Sprint 1 milestone on Dec 7, 2022
  6. moved this from Definition to AC Review in Plugin Checkon Dec 7, 2022
  7. removed their assignment
    on Dec 8, 2022
  8. moved this from AC Review to To Do in Plugin Checkon Dec 18, 2022
  9. moved this from To Do to In Progress in Plugin Checkon Dec 20, 2022
  10. moved this from In Progress to Code Review in Plugin Checkon Dec 21, 2022
  11. Repository owner moved this from Code Review to Done in Plugin Checkon Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    InfrastructureIssues for the overall plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions