WordPoints / dev-lib

Developer tools for WordPoints projects
MIT License
4 stars 0 forks source link

phpunit: Add factory for points types #200

Closed JDGrimes closed 7 years ago

JDGrimes commented 7 years ago

There is the create_points_type() method on the main testcase, but it only creates a default points type with hard-coded settings. It would be better to be able to create multiple points types on-the-fly without having to worry about their settings. Having a factory do this means we also don't have to worry about changes in how points types are created, when the code involved is really irrelevant to the code that we are testing.