$this->assertFalse(empty($term_build['taxonomy_terms'][$term->id()]['taxonomy_test_term_view_check']),'hook_taxonomy_term_view() was invoked when viewing the term.');
$this->assertFalse(empty($term_build['taxonomy_terms'][$term->id()]['taxonomy_test_entity_view_check']),'hook_entity_view() was invoked when viewing the term.');
// Delete the term.
$term->delete();
$antonym=db_query('SELECT tid FROM {taxonomy_term_antonym} WHERE tid = :tid',array(':tid'=>$term->id()))->fetchField();
$this->assertFalse($antonym,'The antonym were deleted from the database.');