Skip to content

Create Check_Context class #10

@mehulkaklotar

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

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