Commit f711f956 authored by alexpott's avatar alexpott

Issue #2574719 by chegor, snehi, pguillard, Chi: Grammatical error in...

Issue #2574719 by chegor, snehi, pguillard, Chi: Grammatical error in assertion message "Make sure that a broken handler of type: @type are created"
parent 62dc3b3d
......@@ -15,6 +15,7 @@
use Drupal\views\Plugin\views\filter\Standard;
use Drupal\views\Views;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Render\FormattableMarkup;
class ModuleTest extends ViewKernelTestBase {
......@@ -54,7 +55,7 @@ public function testViewsGetHandler() {
'field' => $this->randomMachineName(),
);
$handler = $this->container->get('plugin.manager.views.' . $type)->getHandler($item);
$this->assertEqual('Drupal\views\Plugin\views\\' . $type . '\Broken', get_class($handler), t('Make sure that a broken handler of type: @type are created', array('@type' => $type)));
$this->assertEqual('Drupal\views\Plugin\views\\' . $type . '\Broken', get_class($handler), new FormattableMarkup('Make sure that a broken handler of type: @type is created.', ['@type' => $type]));
}
$views_data = $this->viewsData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment