Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Taxonomy sub-generator doesn't handle - in taxonomy name correctly in test case #81

Closed
bignall opened this issue Oct 2, 2016 · 0 comments · Fixed by #82
Closed

Taxonomy sub-generator doesn't handle - in taxonomy name correctly in test case #81

bignall opened this issue Oct 2, 2016 · 0 comments · Fixed by #82

Comments

@bignall
Copy link

bignall commented Oct 2, 2016

When a taxonomy name contains a '-' the taxonomy sub generator doesn't generate the test_class_access() test case correctly. It should convert the '-' to a '_' like it does for the base plugin. For example, with a taxonomy called 'site-type', it generated the following:

    function test_class_access() {
        $this->assertTrue( che()->site-type instanceof CHE_Site_type );
    }

When it should be

    function test_class_access() {
        $this->assertTrue( che()->site_type instanceof CHE_Site_type );
    }
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 a pull request may close this issue.

1 participant