Loading core/lib/Drupal/Component/Plugin/Derivative/DeriverInterface.php +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ interface DeriverInterface { * is derived. It is maybe an entire object or just some array, depending * on the discovery mechanism. * * @return array * @return array|null * The full definition array of the derivative plugin, typically a merge of * $base_plugin_definition with extra derivative-specific information. NULL * if the derivative doesn't exist. Loading core/lib/Drupal/Core/Test/TestRunnerKernel.php +3 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,8 @@ public function boot() { if (!is_dir('public://simpletest') && !@mkdir('public://simpletest', 0777, TRUE) && !is_dir('public://simpletest')) { throw new \RuntimeException('Unable to create directory: public://simpletest'); } return $this; } /** Loading @@ -100,6 +102,7 @@ public function discoverServiceProviders() { // The test runner does not require an installed Drupal site to exist. // Therefore, its environment is identical to that of the early installer. $this->serviceProviderClasses['app']['Test'] = 'Drupal\Core\Installer\InstallerServiceProvider'; return $this->serviceProviderClasses; } } core/modules/config/tests/config_test/src/ConfigTestForm.php +1 −0 Original line number Diff line number Diff line Loading @@ -146,6 +146,7 @@ public function save(array $form, FormStateInterface $form_state) { } $form_state->setRedirectUrl($this->entity->toUrl('collection')); return $status; } /** Loading core/modules/migrate_drupal_ui/tests/modules/migration_provider_test/src/Plugin/migrate/source/NoSourceModule.php +9 −3 Original line number Diff line number Diff line Loading @@ -16,16 +16,22 @@ class NoSourceModule extends DrupalSqlBase { /** * {@inheritdoc} */ public function query() {} public function query() { throw new \BadMethodCallException('This method should never be called'); } /** * {@inheritdoc} */ public function fields() {} public function fields() { throw new \BadMethodCallException('This method should never be called'); } /** * {@inheritdoc} */ public function getIds() {} public function getIds() { throw new \BadMethodCallException('This method should never be called'); } } core/modules/search/tests/modules/search_extra_type/src/Plugin/Search/SearchExtraTypeSearch.php +1 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ public function setSearch($keywords, array $parameters, array $attributes) { $parameters['search_conditions'] = ''; } parent::setSearch($keywords, $parameters, $attributes); return $this; } /** Loading Loading
core/lib/Drupal/Component/Plugin/Derivative/DeriverInterface.php +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ interface DeriverInterface { * is derived. It is maybe an entire object or just some array, depending * on the discovery mechanism. * * @return array * @return array|null * The full definition array of the derivative plugin, typically a merge of * $base_plugin_definition with extra derivative-specific information. NULL * if the derivative doesn't exist. Loading
core/lib/Drupal/Core/Test/TestRunnerKernel.php +3 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,8 @@ public function boot() { if (!is_dir('public://simpletest') && !@mkdir('public://simpletest', 0777, TRUE) && !is_dir('public://simpletest')) { throw new \RuntimeException('Unable to create directory: public://simpletest'); } return $this; } /** Loading @@ -100,6 +102,7 @@ public function discoverServiceProviders() { // The test runner does not require an installed Drupal site to exist. // Therefore, its environment is identical to that of the early installer. $this->serviceProviderClasses['app']['Test'] = 'Drupal\Core\Installer\InstallerServiceProvider'; return $this->serviceProviderClasses; } }
core/modules/config/tests/config_test/src/ConfigTestForm.php +1 −0 Original line number Diff line number Diff line Loading @@ -146,6 +146,7 @@ public function save(array $form, FormStateInterface $form_state) { } $form_state->setRedirectUrl($this->entity->toUrl('collection')); return $status; } /** Loading
core/modules/migrate_drupal_ui/tests/modules/migration_provider_test/src/Plugin/migrate/source/NoSourceModule.php +9 −3 Original line number Diff line number Diff line Loading @@ -16,16 +16,22 @@ class NoSourceModule extends DrupalSqlBase { /** * {@inheritdoc} */ public function query() {} public function query() { throw new \BadMethodCallException('This method should never be called'); } /** * {@inheritdoc} */ public function fields() {} public function fields() { throw new \BadMethodCallException('This method should never be called'); } /** * {@inheritdoc} */ public function getIds() {} public function getIds() { throw new \BadMethodCallException('This method should never be called'); } }
core/modules/search/tests/modules/search_extra_type/src/Plugin/Search/SearchExtraTypeSearch.php +1 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ public function setSearch($keywords, array $parameters, array $attributes) { $parameters['search_conditions'] = ''; } parent::setSearch($keywords, $parameters, $attributes); return $this; } /** Loading