Regaez/grav-plugin-api

fix: PageResource test throws exception

Regaez opened this issue · 2 comments

The following error message is output when trying to run the PageResourceTest::testGetResourceAttributesReturnsPageData() function:

[UnexpectedValueException] RecursiveDirectoryIterator::__construct(): 
Unable to find the wrapper "theme" - did you forget to enable it when you configured PHP?

It seems to be caused by the extra field on a Page.

See 3c647d9 for fix. Had to configure() the themes wrapper.