diff --git a/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php b/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php index 34e4f93000dda44e33d0747b91f1127ad01dcc3d..823ffdefd5ee7693436b2d224fd6dca572ea29f4 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php @@ -4,6 +4,7 @@ use Drupal\views\Plugin\views\join\FieldOrLanguageJoin; use Drupal\views\Views; +use Drupal\views\ViewExecutable; /** * Tests the "field OR language" join plugin. @@ -191,7 +192,7 @@ public function testLanguageBundleConditions() { * \Drupal\Core\Database\Query\Select::$tables for more information on the * structure of the array. */ - protected function buildJoin($view, $configuration, $table_alias) { + protected function buildJoin(ViewExecutable $view, $configuration, $table_alias) { // Build the actual join values and read them back from the query object. $query = \Drupal::database()->select('node'); diff --git a/core/modules/views/tests/src/Kernel/Plugin/StyleMappingTest.php b/core/modules/views/tests/src/Kernel/Plugin/StyleMappingTest.php index d83b2643ac8c6bb3cecd2eee0026a19f47e536f6..353a258bc9511265b2ca03a7741609be4283d4b8 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/StyleMappingTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/StyleMappingTest.php @@ -4,6 +4,7 @@ use Drupal\Component\Render\FormattableMarkup; use Drupal\views\Views; +use Drupal\views\ViewExecutable; /** * Tests mapping style functionality. @@ -45,7 +46,7 @@ public function testMappedOutput() { * @return string * The view rendered as HTML. */ - protected function mappedOutputHelper($view) { + protected function mappedOutputHelper(ViewExecutable $view) { $output = $view->preview(); $rendered_output = \Drupal::service('renderer')->renderRoot($output); $this->storeViewPreview($rendered_output); diff --git a/core/modules/views/tests/src/Kernel/ViewExecutableTest.php b/core/modules/views/tests/src/Kernel/ViewExecutableTest.php index 84d2504e25df695c36a8a9608a30b29a4ddaeddb..1c32786b8a29538e3bbeacc814a81d3eb554aeb2 100644 --- a/core/modules/views/tests/src/Kernel/ViewExecutableTest.php +++ b/core/modules/views/tests/src/Kernel/ViewExecutableTest.php @@ -354,7 +354,7 @@ public function testDestroy() { * * @param \Drupal\views\ViewExecutable $view */ - protected function assertViewDestroy($view) { + protected function assertViewDestroy(ViewExecutable $view) { $reflection = new \ReflectionClass($view); $defaults = $reflection->getDefaultProperties(); // The storage and user should remain.