18.10.2016 Views

Drupal 7 Module Development

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2<br />

To run the test, go to Configuration | Testing. As long as your test case is<br />

implemented correctly (including the getInfo() method), then it should<br />

show up in the list.<br />

If we select our group of tests, and then press the Run tests button, our test case<br />

will be executed. Test cases often take a long time to run. Behind the scenes, <strong>Drupal</strong><br />

actually builds a special installation of <strong>Drupal</strong> that will be used only for this round of<br />

tests. But after a minute or two, the test framework should print a report that looks<br />

something like this:<br />

[ 59 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!