Hi,

I am having an issue where the my views that are all created in features are not being created in the a test case even though I am installing the Features via the setUp method.

I am including ctools and Views in the same modules array and have been looking at the dependancy chain in case there was something else missing that was preventing the features from being installed correctly or creating the views.

Having checked the System table by breaking the code and inspecting the temporary test tables I can see that the feature modules are being installed but the views are not and therefor their paths for the page views are returning 404 pages so I can't test them.

The watcdog is also bereft of any useful information so no help there and there are no errors or messages relating to the fact that the features were not installed correctly of that the views were not created.

Any help on this in terms of where or what to try next would be very much appreciated.

Thanks

Tom

Comments

TomGould01’s picture

Additionally can anyone tell me if the order of modules in the modules array passed to setUp makes any difference?

Also if dependancies are omited is the install procedure used by simpletest clever enough to install the dependancies as well ?

czigor’s picture

I have features enabled views in my test and it works.

Have you tried enabling the dependecies first in a separate array and then the feature in another array?

Version: 7.14 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.