Skip to content

Make tests more predictable by publishing default content stubs #182

Closed
@caendesilva

Description

Adding a todo:

To make testing more predictable, I want to create stubs for the content files that should be included in Hyde installs.
These would be:

  • _pages\index.blade.php
  • _pages\404.blade.php
  • _site\media\app.css

Before and after each test all content directories are deleted, and createsdefaultdirectories are run, and stubs republished.

The backup file helpers can then also be removed, as tests should never be run in a production environment.
Edit: Keeping the file helpers as I'm keeping the backup/restores of other files that are not in the scope of content files, such as config files etc.

Originally posted by @caendesilva in #181 (comment)

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