// Check if we got the rendered output of our template file.
$this->assertTrue(strpos(\Drupal::service('renderer')->renderRoot($output),'This module defines its own display template.')!==FALSE,'Display plugin DisplayTemplateTest defines its own template.');