Mercurial > hg > isophonics-drupal-site
diff core/modules/views/tests/src/Kernel/ModuleTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/views/tests/src/Kernel/ModuleTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/views/tests/src/Kernel/ModuleTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -9,7 +9,6 @@ */ use Drupal\views\Plugin\views\filter\Standard; use Drupal\views\Views; -use Drupal\Component\Utility\SafeMarkup; use Drupal\Component\Render\FormattableMarkup; class ModuleTest extends ViewsKernelTestBase { @@ -29,7 +28,7 @@ public static $modules = ['field', 'user', 'block']; /** - * Stores the last triggered error, for example via debug(). + * Stores the last triggered error. * * @var string * @@ -38,9 +37,9 @@ protected $lastErrorMessage; /** - * Tests the views_get_handler method. + * Tests the ViewsHandlerManager::getHandler() method. * - * @see views_get_handler() + * @see \Drupal\views\Plugin\ViewsHandlerManager::getHandler() */ public function testViewsGetHandler() { $types = ['field', 'area', 'filter']; @@ -256,7 +255,7 @@ list($plugin_type, $plugin_id) = explode(':', $key); $plugin_def = $this->container->get("plugin.manager.views.$plugin_type")->getDefinition($plugin_id); - $this->assertTrue(isset($plugin_list[$key]), SafeMarkup::format('The expected @key plugin list key was found.', ['@key' => $key])); + $this->assertTrue(isset($plugin_list[$key]), new FormattableMarkup('The expected @key plugin list key was found.', ['@key' => $key])); $plugin_details = $plugin_list[$key]; $this->assertEqual($plugin_details['type'], $plugin_type, 'The expected plugin type was found.');