Use asserts to check for valid conditions in code. Link https://www.drupal.org/docs/drupal-apis/runtime-assertions Tags #Testing Articles Testing Drupal