Add new comment

Hey Chris, glad you enjoyed the article. We've actually got a whole series on SimpleTest that covers a lot of the more advanced features. https://drupalize.me/videos/learning-test-case-basics-writing-hello-wor…. It doesn't cover these specific use cases but would give you a good push in the right direction.

Another place to find more information would be to look through Drupal core's test files and find ones that are similar to your use case. There are thousands of tests in core, and a lot of them are already testing things like hook_node_update and hook_query_alter so you can probably build off of what is already being done.

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code class> <ul type> <ol start type> <li> <dl> <dt> <dd><h3 id> <p>
  • Lines and paragraphs break automatically.