Skip to content

phpunit: Correctly register module realpath #143

Description

@JDGrimes

Currently when we load a module we call WordPoints_Module_Paths::register() we pass it the real path, not the module directory path. This means that the correct path is not registered, resulting in the wrong Installable slug, among other things.

However, this isn't as simple as just calculating the module path, because the module directory will be the tests module directory during the tests. See WordPoints/wordpoints#430 (comment). This may require a change in WordPoints PHPUnit bootstrap.

Activity

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions