Skip to content

Don't assume basic-page exists as a template when running WireTests #2325

Description

@jlahijani

In Fieldgroups.test.php there is this test:

$this->check('$fieldgroups->get(basic-page) returns Fieldgroup', true, $fieldgroups->get('basic-page') instanceof Fieldgroup);

It assumes the site has a template called basic-page. I always rename it to just basic because then when I make the associated page class file, it will be class BasicPage instead of class BasicPagePage (which sounds silly).

So the way the test is written will fail given that I rename basic-page template to simply basic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions