Issue #3283794 by mondrake, longwave: Fix 'should return {type} but return statement is missing' PHPStan L0 errors in test code

merge-requests/2333/merge
Alex Pott 2022-06-14 14:10:16 +01:00
parent 6eff88bf3f
commit 386d79e2e0
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
93 changed files with 192 additions and 797 deletions

View File

@ -109,6 +109,7 @@ abstract class BlockResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -66,6 +66,7 @@ abstract class BlockContentTypeResourceTestBase extends ConfigEntityResourceTest
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -179,9 +179,7 @@ class CommentNonNodeTest extends BrowserTestBase {
$this->assertArrayHasKey(1, $match);
}
if (isset($match[1])) {
return Comment::load($match[1]);
}
return Comment::load($match[1]);
}
/**

View File

@ -317,16 +317,17 @@ abstract class CommentResourceTestBase extends EntityResourceTestBase {
*/
protected function getExpectedUnauthorizedAccessMessage($method) {
switch ($method) {
case 'GET';
case 'GET':
return "The 'access comments' permission is required and the comment must be published.";
case 'POST';
case 'POST':
return "The 'post comments' permission is required.";
case 'PATCH';
case 'PATCH':
return "The 'edit own comments' permission is required, the user must be the comment author, and the comment must be published.";
case 'DELETE':
default:
// \Drupal\comment\CommentAccessControlHandler::checkAccess() does not
// specify a reason for not allowing a comment to be deleted.
return '';

View File

@ -72,6 +72,7 @@ abstract class CommentTypeResourceTestBase extends ConfigEntityResourceTestBase
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -68,6 +68,7 @@ abstract class ConfigTestResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -85,6 +85,7 @@ abstract class ContactFormResourceTestBase extends ConfigEntityResourceTestBase
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -122,6 +122,7 @@ abstract class EditorResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -94,6 +94,7 @@ abstract class FieldConfigResourceTestBase extends ConfigEntityResourceTestBase
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -73,6 +73,7 @@ abstract class FieldStorageConfigResourceTestBase extends ConfigEntityResourceTe
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -83,6 +83,7 @@ abstract class FilterFormatResourceTestBase extends ConfigEntityResourceTestBase
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -99,6 +99,7 @@ abstract class ImageStyleResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -112,6 +112,7 @@ class ActionTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -123,6 +123,7 @@ class BaseFieldOverrideTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -103,6 +103,7 @@ class BlockContentTypeTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -136,6 +136,7 @@ class BlockTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update once https://www.drupal.org/node/2300677 is fixed.
return [];
}
/**

View File

@ -104,6 +104,7 @@ class CommentTypeTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -116,6 +116,7 @@ class ConfigTestTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -105,6 +105,7 @@ class ConfigurableLanguageTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -112,6 +112,7 @@ class ContactFormTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -116,6 +116,7 @@ class ContentLanguageSettingsTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -108,6 +108,7 @@ class DateFormatTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -156,6 +156,7 @@ class EditorTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -173,6 +173,7 @@ class EntityFormDisplayTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -106,6 +106,7 @@ class EntityFormModeTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -127,6 +127,7 @@ class EntityViewDisplayTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -106,6 +106,7 @@ class EntityViewModeTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -133,6 +133,7 @@ class FieldConfigTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -112,6 +112,7 @@ class FieldStorageConfigTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -5,6 +5,7 @@ namespace Drupal\Tests\jsonapi\Functional;
use Drupal\Component\Render\PlainTextOutput;
use Drupal\Component\Serialization\Json;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Url;
use Drupal\entity_test\Entity\EntityTest;
@ -775,6 +776,7 @@ class FileUploadTest extends ResourceTestBase {
case 'PATCH':
return "The current user is not permitted to upload a file for this field. The 'administer entity_test content' permission is required.";
}
return '';
}
/**
@ -927,6 +929,7 @@ class FileUploadTest extends ResourceTestBase {
protected function getExpectedUnauthorizedAccessCacheability() {
// There is cacheability metadata to check as file uploads only allows POST
// requests, which will not return cacheable responses.
return new CacheableMetadata();
}
}

View File

@ -120,6 +120,7 @@ class FilterFormatTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -130,6 +130,7 @@ class ImageStyleTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -110,6 +110,7 @@ class MediaTypeTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -106,6 +106,7 @@ class MenuTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -265,6 +265,7 @@ class NodeTest extends ResourceTestBase {
case 'DELETE':
return "The 'access content' permission is required.";
}
return '';
}
/**

View File

@ -106,6 +106,7 @@ class NodeTypeTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -148,6 +148,7 @@ class RdfMappingTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -142,6 +142,7 @@ class ResponsiveImageStyleTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -2,6 +2,7 @@
namespace Drupal\Tests\jsonapi\Functional;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Url;
use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
@ -117,11 +118,15 @@ class RestJsonApiUnsupported extends ResourceTestBase {
/**
* {@inheritdoc}
*/
protected function getExpectedUnauthorizedAccessMessage($method) {}
protected function getExpectedUnauthorizedAccessMessage($method) {
return '';
}
/**
* {@inheritdoc}
*/
protected function getExpectedUnauthorizedAccessCacheability() {}
protected function getExpectedUnauthorizedAccessCacheability() {
return (new CacheableMetadata());
}
}

View File

@ -126,6 +126,7 @@ class RestResourceConfigTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -101,6 +101,7 @@ class RoleTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -119,6 +119,7 @@ class SearchPageTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -123,6 +123,7 @@ class ShortcutSetTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -131,6 +131,7 @@ class TourTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -121,6 +121,7 @@ class ViewTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -100,6 +100,7 @@ class VocabularyTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -126,6 +126,7 @@ class WorkflowTest extends ConfigEntityResourceTestBase {
*/
protected function getPostDocument() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -73,6 +73,7 @@ abstract class ConfigurableLanguageResourceTestBase extends ConfigEntityResource
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -77,6 +77,7 @@ abstract class ContentLanguageSettingsResourceTestBase extends ConfigEntityResou
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -43,56 +43,77 @@ class TestStateBasedSectionStorage extends SectionStorageBase {
/**
* {@inheritdoc}
*/
public function access($operation, AccountInterface $account = NULL, $return_as_object = FALSE) {}
public function access($operation, AccountInterface $account = NULL, $return_as_object = FALSE) {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}
*/
protected function getSectionList() {}
protected function getSectionList() {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}
*/
public function getStorageId() {}
public function getStorageId() {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}
*/
public function getSectionListFromId($id) {}
public function getSectionListFromId($id) {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}
*/
public function buildRoutes(RouteCollection $collection) {}
public function buildRoutes(RouteCollection $collection) {
}
/**
* {@inheritdoc}
*/
public function getRedirectUrl() {}
public function getRedirectUrl() {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}
*/
public function getLayoutBuilderUrl($rel = 'view') {}
public function getLayoutBuilderUrl($rel = 'view') {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}
*/
public function extractIdFromRoute($value, $definition, $name, array $defaults) {}
public function extractIdFromRoute($value, $definition, $name, array $defaults) {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}
*/
public function deriveContextsFromRoute($value, $definition, $name, array $defaults) {}
public function deriveContextsFromRoute($value, $definition, $name, array $defaults) {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}
*/
public function label() {}
public function label() {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}
*/
public function save() {}
public function save() {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
}

View File

@ -3,6 +3,7 @@
namespace Drupal\Tests\layout_builder\Functional\Rest;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Url;
use Drupal\Tests\rest\Functional\BasicAuthResourceTestTrait;
use Drupal\Tests\rest\Functional\ResourceTestBase;
@ -131,7 +132,9 @@ abstract class LayoutRestTestBase extends ResourceTestBase {
/**
* {@inheritdoc}
*/
protected function getExpectedUnauthorizedAccessCacheability() {}
protected function getExpectedUnauthorizedAccessCacheability() {
return (new CacheableMetadata());
}
/**
* Gets the decoded contents.

View File

@ -73,6 +73,7 @@ abstract class MediaTypeResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -225,12 +225,16 @@ class TestSqlBase extends SqlBase {
/**
* {@inheritdoc}
*/
public function getIds() {}
public function getIds() {
return [];
}
/**
* {@inheritdoc}
*/
public function fields() {}
public function fields() {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}

View File

@ -220,12 +220,16 @@ class TestSqlBase extends SqlBase {
/**
* {@inheritdoc}
*/
public function fields() {}
public function fields() {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}
*/
public function query() {}
public function query() {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**
* {@inheritdoc}

View File

@ -32,6 +32,7 @@ class TestMigrateExecutable extends MigrateExecutable {
*/
public function setStringTranslation(TranslationInterface $string_translation) {
$this->stringTranslation = $string_translation;
return $this;
}
/**

View File

@ -184,6 +184,7 @@ class TestDrupalSqlBase extends DrupalSqlBase {
* {@inheritdoc}
*/
public function query() {
throw new \RuntimeException(__METHOD__ . " not implemented for " . __CLASS__);
}
/**

View File

@ -44,24 +44,28 @@ class IdConflictTest extends MigrateUpgradeExecuteTestBase {
* {@inheritdoc}
*/
protected function getEntityCounts() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getEntityCountsIncremental() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getAvailablePaths() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getMissingPaths() {
return [];
}
/**

View File

@ -51,24 +51,28 @@ class NodeClassicTest extends MigrateUpgradeExecuteTestBase {
* {@inheritdoc}
*/
protected function getEntityCounts() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getEntityCountsIncremental() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getAvailablePaths() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getMissingPaths() {
return [];
}
/**

View File

@ -287,30 +287,35 @@ class FilePathTest extends MigrateUpgradeTestBase {
* {@inheritdoc}
*/
protected function getEntityCounts() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getEntityCountsIncremental() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getAvailablePaths() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getMissingPaths() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getSourceBasePath() {
return '';
}
}

View File

@ -44,24 +44,28 @@ class IdConflictTest extends MigrateUpgradeExecuteTestBase {
* {@inheritdoc}
*/
protected function getEntityCounts() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getEntityCountsIncremental() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getAvailablePaths() {
return [];
}
/**
* {@inheritdoc}
*/
protected function getMissingPaths() {
return [];
}
/**

View File

@ -74,6 +74,7 @@ abstract class NodeTypeResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -111,6 +111,7 @@ abstract class RdfMappingResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -117,6 +117,7 @@ abstract class ResponsiveImageStyleResourceTestBase extends ConfigEntityResource
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -4,6 +4,7 @@ namespace Drupal\Tests\rest\Functional;
use Drupal\Component\Render\PlainTextOutput;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Url;
use Drupal\entity_test\Entity\EntityTest;
@ -819,6 +820,7 @@ abstract class FileUploadResourceTestBase extends ResourceTestBase {
protected function getExpectedUnauthorizedAccessCacheability() {
// There is cacheability metadata to check as file uploads only allows POST
// requests, which will not return cacheable responses.
return new CacheableMetadata();
}
}

View File

@ -501,6 +501,8 @@ abstract class ResourceTestBase extends BrowserTestBase {
static::recursiveKSort($value);
}
}
return $array;
}
}

View File

@ -89,6 +89,7 @@ abstract class RestResourceConfigResourceTestBase extends ConfigEntityResourceTe
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -80,6 +80,7 @@ abstract class SearchPageResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -83,6 +83,7 @@ abstract class ShortcutSetResourceTestBase extends ConfigEntityResourceTestBase
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -68,6 +68,7 @@ abstract class EntityTestBundleResourceTestBase extends ConfigEntityResourceTest
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -43,7 +43,7 @@ class StubForm extends FormBase {
* {@inheritdoc}
*/
public function getFormId() {
$this->formId;
return $this->formId;
}
/**

View File

@ -75,6 +75,7 @@ abstract class ActionResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -64,6 +64,7 @@ abstract class MenuResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -417,6 +417,7 @@ class TestPathBasedBreadcrumbBuilder extends PathBasedBreadcrumbBuilder {
public function setStringTranslation(TranslationInterface $string_translation) {
$this->stringTranslation = $string_translation;
return $this;
}
public function setLinkGenerator(LinkGeneratorInterface $link_generator) {

View File

@ -63,6 +63,7 @@ abstract class VocabularyResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -94,6 +94,7 @@ abstract class TourResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -64,6 +64,7 @@ abstract class RoleResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -2,6 +2,7 @@
namespace Drupal\Tests\user\Functional;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Test\AssertMailTrait;
use Drupal\Core\Url;
use Drupal\Tests\rest\Functional\CookieResourceTestTrait;
@ -255,11 +256,15 @@ class UserRegistrationRestTest extends ResourceTestBase {
/**
* {@inheritdoc}
*/
protected function getExpectedUnauthorizedAccessMessage($method) {}
protected function getExpectedUnauthorizedAccessMessage($method) {
return '';
}
/**
* {@inheritdoc}
*/
protected function getExpectedUnauthorizedAccessCacheability() {}
protected function getExpectedUnauthorizedAccessCacheability() {
return new CacheableMetadata();
}
}

View File

@ -27,12 +27,9 @@ trait ViewResultAssertionTrait {
* @param string $message
* (optional) A custom message to display with the assertion. Defaults to
* 'Identical result set.'
*
* @return bool
* TRUE if the assertion succeeded, or FALSE otherwise.
*/
protected function assertIdenticalResultset($view, $expected_result, $column_map = [], $message = NULL) {
return $this->assertIdenticalResultsetHelper($view, $expected_result, $column_map, 'assertIdentical', $message);
protected function assertIdenticalResultset($view, $expected_result, $column_map = [], $message = NULL): void {
$this->assertIdenticalResultsetHelper($view, $expected_result, $column_map, 'assertIdentical', $message);
}
/**
@ -50,12 +47,9 @@ trait ViewResultAssertionTrait {
* @param string $message
* (optional) A custom message to display with the assertion. Defaults to
* 'Non-identical result set.'
*
* @return bool
* TRUE if the assertion succeeded, or FALSE otherwise.
*/
protected function assertNotIdenticalResultset($view, $expected_result, $column_map = [], $message = NULL) {
return $this->assertIdenticalResultsetHelper($view, $expected_result, $column_map, 'assertNotIdentical', $message);
protected function assertNotIdenticalResultset($view, $expected_result, $column_map = [], $message = NULL): void {
$this->assertIdenticalResultsetHelper($view, $expected_result, $column_map, 'assertNotIdentical', $message);
}
/**
@ -76,11 +70,8 @@ trait ViewResultAssertionTrait {
* 'assertNotIdentical').
* @param string $message
* (optional) The message to display with the assertion.
*
* @return bool
* TRUE if the assertion succeeded.
*/
protected function assertIdenticalResultsetHelper($view, $expected_result, $column_map, $assert_method, $message = NULL) {
protected function assertIdenticalResultsetHelper($view, $expected_result, $column_map, $assert_method, $message = NULL): void {
// Convert $view->result to an array of arrays.
$result = [];
foreach ($view->result as $key => $value) {
@ -142,11 +133,11 @@ trait ViewResultAssertionTrait {
switch ($assert_method) {
case 'assertIdentical':
$this->assertSame($expected_result, $result, $message);
return TRUE;
break;
case 'assertNotIdentical':
$this->assertNotSame($expected_result, $result, $message);
return TRUE;
break;
}
}

View File

@ -84,6 +84,7 @@ abstract class ViewResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -102,6 +102,7 @@ abstract class WorkflowResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -680,11 +680,6 @@ parameters:
count: 2
path: modules/block/tests/modules/block_test/src/Plugin/Block/TestAccessBlock.php
-
message: "#^Method Drupal\\\\Tests\\\\block\\\\Functional\\\\Rest\\\\BlockResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php
-
message: "#^Method Drupal\\\\block_content\\\\BlockContentForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#"
count: 1
@ -705,11 +700,6 @@ parameters:
count: 1
path: modules/block_content/tests/src/Functional/BlockContentSaveTest.php
-
message: "#^Method Drupal\\\\Tests\\\\block_content\\\\Functional\\\\Rest\\\\BlockContentTypeResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/block_content/tests/src/Functional/Rest/BlockContentTypeResourceTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 2
@ -720,16 +710,6 @@ parameters:
count: 3
path: modules/block_content/tests/src/Kernel/Migrate/d6/MigrateCustomBlockContentTranslationTest.php
-
message: "#^Method Drupal\\\\Tests\\\\block_content\\\\Kernel\\\\Views\\\\RevisionRelationshipsTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/block_content/tests/src/Kernel/Views/RevisionRelationshipsTest.php
-
message: "#^Method Drupal\\\\Tests\\\\block_content\\\\Kernel\\\\Views\\\\RevisionUserTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/block_content/tests/src/Kernel/Views/RevisionUserTest.php
-
message: "#^Method Drupal\\\\book\\\\BookOutline\\:\\:nextLink\\(\\) should return array but return statement is missing\\.$#"
count: 1
@ -850,41 +830,16 @@ parameters:
count: 1
path: modules/comment/tests/src/Functional/CommentBlockTest.php
-
message: "#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\CommentNonNodeTest\\:\\:postComment\\(\\) should return Drupal\\\\comment\\\\CommentInterface but return statement is missing\\.$#"
count: 1
path: modules/comment/tests/src/Functional/CommentNonNodeTest.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 1
path: modules/comment/tests/src/Functional/CommentTranslationUITest.php
-
message: "#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\Rest\\\\CommentResourceTestBase\\:\\:getExpectedUnauthorizedAccessMessage\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\comment\\\\Functional\\\\Rest\\\\CommentTypeResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/comment/tests/src/Functional/Rest/CommentTypeResourceTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 1
path: modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php
-
message: "#^Method Drupal\\\\Tests\\\\comment\\\\Kernel\\\\Views\\\\CommentFieldNameTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/comment/tests/src/Kernel/Views/CommentFieldNameTest.php
-
message: "#^Method Drupal\\\\Tests\\\\comment\\\\Kernel\\\\Views\\\\FilterAndArgumentUserUidTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/comment/tests/src/Kernel/Views/FilterAndArgumentUserUidTest.php
-
message: "#^Access to constant DEFAULT_COLLECTION on an unknown class Drupal\\\\config_override_test\\\\StorageInterface\\.$#"
count: 1
@ -895,11 +850,6 @@ parameters:
count: 1
path: modules/config/tests/config_test/src/ConfigTestForm.php
-
message: "#^Method Drupal\\\\Tests\\\\config_test\\\\Functional\\\\Rest\\\\ConfigTestResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestResourceTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 1
@ -925,11 +875,6 @@ parameters:
count: 1
path: modules/contact/src/MessageForm.php
-
message: "#^Method Drupal\\\\Tests\\\\contact\\\\Functional\\\\Rest\\\\ContactFormResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/contact/tests/src/Functional/Rest/ContactFormResourceTestBase.php
-
message: "#^Method Drupal\\\\content_moderation\\\\ModerationInformation\\:\\:getAffectedRevisionTranslation\\(\\) should return Drupal\\\\Core\\\\Entity\\\\ContentEntityInterface but return statement is missing\\.$#"
count: 1
@ -995,11 +940,6 @@ parameters:
count: 1
path: modules/dblog/tests/src/Kernel/DbLogTest.php
-
message: "#^Method Drupal\\\\Tests\\\\editor\\\\Functional\\\\Rest\\\\EditorResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php
-
message: "#^Access to an undefined property Drupal\\\\field\\\\Entity\\\\FieldConfig\\:\\:\\$original\\.$#"
count: 4
@ -1015,16 +955,6 @@ parameters:
count: 2
path: modules/field/tests/src/Functional/NestedFormTest.php
-
message: "#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\Rest\\\\FieldConfigResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/field/tests/src/Functional/Rest/FieldConfigResourceTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\field\\\\Functional\\\\Rest\\\\FieldStorageConfigResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 1
@ -1110,11 +1040,6 @@ parameters:
count: 2
path: modules/file/tests/src/Kernel/UsageTest.php
-
message: "#^Method Drupal\\\\Tests\\\\file\\\\Kernel\\\\Views\\\\RelationshipUserFileDataTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/file/tests/src/Kernel/Views/RelationshipUserFileDataTest.php
-
message: "#^\\#lazy_builder value 'string' at key '0' is invalid\\.$#"
count: 1
@ -1125,11 +1050,6 @@ parameters:
count: 1
path: modules/filter/src/Plugin/migrate/process/d6/FilterFormatPermission.php
-
message: "#^Method Drupal\\\\Tests\\\\filter\\\\Functional\\\\Rest\\\\FilterFormatResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/filter/tests/src/Functional/Rest/FilterFormatResourceTestBase.php
-
message: "#^Method Drupal\\\\forum\\\\ForumManager\\:\\:getTopicOrder\\(\\) should return array but return statement is missing\\.$#"
count: 1
@ -1175,11 +1095,6 @@ parameters:
count: 1
path: modules/image/src/Form/ImageStyleFormBase.php
-
message: "#^Method Drupal\\\\Tests\\\\image\\\\Functional\\\\Rest\\\\ImageStyleResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php
-
message: "#^Method Drupal\\\\jsonapi\\\\JsonApiResource\\\\ResourceIdentifier\\:\\:getDataReferencePropertyName\\(\\) should return string but return statement is missing\\.$#"
count: 1
@ -1190,196 +1105,11 @@ parameters:
count: 1
path: modules/jsonapi/src/Revisions/VersionNegotiator.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ActionTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/ActionTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\BaseFieldOverrideTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/BaseFieldOverrideTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\BlockContentTypeTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/BlockContentTypeTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\BlockTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/BlockTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\CommentTypeTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/CommentTypeTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ConfigTestTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/ConfigTestTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ConfigurableLanguageTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ContactFormTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/ContactFormTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ContentLanguageSettingsTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/ContentLanguageSettingsTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\DateFormatTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/DateFormatTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EditorTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/EditorTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityFormDisplayTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/EntityFormDisplayTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityFormModeTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/EntityFormModeTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityViewDisplayTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/EntityViewDisplayTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\EntityViewModeTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/EntityViewModeTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FieldConfigTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/FieldConfigTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FieldStorageConfigTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/FieldStorageConfigTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FileUploadTest\\:\\:getExpectedUnauthorizedAccessCacheability\\(\\) should return Drupal\\\\Core\\\\Cache\\\\CacheableMetadata but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/FileUploadTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FileUploadTest\\:\\:getExpectedUnauthorizedAccessMessage\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/FileUploadTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\FilterFormatTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/FilterFormatTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ImageStyleTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/ImageStyleTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\MediaTypeTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/MediaTypeTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\MenuTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/MenuTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\NodeTest\\:\\:getExpectedUnauthorizedAccessMessage\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/NodeTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\NodeTypeTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/NodeTypeTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\RdfMappingTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/RdfMappingTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ResponsiveImageStyleTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/ResponsiveImageStyleTest.php
-
message: "#^Access to an undefined property Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\RestJsonApiUnsupported\\:\\:\\$httpClient\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\RestJsonApiUnsupported\\:\\:getExpectedUnauthorizedAccessCacheability\\(\\) should return Drupal\\\\Core\\\\Cache\\\\RefinableCacheableDependencyInterface but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\RestJsonApiUnsupported\\:\\:getExpectedUnauthorizedAccessMessage\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\RestResourceConfigTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/RestResourceConfigTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\RoleTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/RoleTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\SearchPageTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/SearchPageTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ShortcutSetTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/ShortcutSetTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\TourTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/TourTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\ViewTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/ViewTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\VocabularyTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/VocabularyTest.php
-
message: "#^Method Drupal\\\\Tests\\\\jsonapi\\\\Functional\\\\WorkflowTest\\:\\:getPostDocument\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/jsonapi/tests/src/Functional/WorkflowTest.php
-
message: "#^Method Drupal\\\\language\\\\Form\\\\LanguageAddForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#"
count: 1
@ -1395,61 +1125,6 @@ parameters:
count: 1
path: modules/language/src/LanguageNegotiationMethodManager.php
-
message: "#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\Rest\\\\ConfigurableLanguageResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\language\\\\Functional\\\\Rest\\\\ContentLanguageSettingsResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/language/tests/src/Functional/Rest/ContentLanguageSettingsResourceTestBase.php
-
message: "#^Method Drupal\\\\layout_builder_test\\\\Plugin\\\\SectionStorage\\\\TestStateBasedSectionStorage\\:\\:access\\(\\) should return bool\\|Drupal\\\\Core\\\\Access\\\\AccessResultInterface but return statement is missing\\.$#"
count: 1
path: modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
-
message: "#^Method Drupal\\\\layout_builder_test\\\\Plugin\\\\SectionStorage\\\\TestStateBasedSectionStorage\\:\\:deriveContextsFromRoute\\(\\) should return array\\<Drupal\\\\Core\\\\Plugin\\\\Context\\\\ContextInterface\\> but return statement is missing\\.$#"
count: 1
path: modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
-
message: "#^Method Drupal\\\\layout_builder_test\\\\Plugin\\\\SectionStorage\\\\TestStateBasedSectionStorage\\:\\:getLayoutBuilderUrl\\(\\) should return Drupal\\\\Core\\\\Url but return statement is missing\\.$#"
count: 1
path: modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
-
message: "#^Method Drupal\\\\layout_builder_test\\\\Plugin\\\\SectionStorage\\\\TestStateBasedSectionStorage\\:\\:getRedirectUrl\\(\\) should return Drupal\\\\Core\\\\Url but return statement is missing\\.$#"
count: 1
path: modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
-
message: "#^Method Drupal\\\\layout_builder_test\\\\Plugin\\\\SectionStorage\\\\TestStateBasedSectionStorage\\:\\:getSectionList\\(\\) should return Drupal\\\\layout_builder\\\\SectionListInterface but return statement is missing\\.$#"
count: 1
path: modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
-
message: "#^Method Drupal\\\\layout_builder_test\\\\Plugin\\\\SectionStorage\\\\TestStateBasedSectionStorage\\:\\:getStorageId\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
-
message: "#^Method Drupal\\\\layout_builder_test\\\\Plugin\\\\SectionStorage\\\\TestStateBasedSectionStorage\\:\\:label\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
-
message: "#^Method Drupal\\\\layout_builder_test\\\\Plugin\\\\SectionStorage\\\\TestStateBasedSectionStorage\\:\\:save\\(\\) should return int but return statement is missing\\.$#"
count: 1
path: modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
-
message: "#^Method Drupal\\\\Tests\\\\layout_builder\\\\Functional\\\\Rest\\\\LayoutRestTestBase\\:\\:getExpectedUnauthorizedAccessCacheability\\(\\) should return Drupal\\\\Core\\\\Cache\\\\RefinableCacheableDependencyInterface but return statement is missing\\.$#"
count: 1
path: modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php
-
message: "#^Call to an undefined method Drupal\\\\Tests\\\\layout_builder\\\\Unit\\\\DefaultsSectionStorageTest\\:\\:getThirdPartySetting\\(\\)\\.$#"
count: 1
@ -1550,16 +1225,6 @@ parameters:
count: 1
path: modules/media/src/MediaTypeForm.php
-
message: "#^Method Drupal\\\\Tests\\\\media\\\\Functional\\\\Rest\\\\MediaTypeResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/media/tests/src/Functional/Rest/MediaTypeResourceTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\media\\\\Kernel\\\\Views\\\\RevisionUserTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/media/tests/src/Kernel/Views/RevisionUserTest.php
-
message: "#^Method Drupal\\\\menu_link_content\\\\Form\\\\MenuLinkContentForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#"
count: 1
@ -1620,31 +1285,6 @@ parameters:
count: 1
path: modules/migrate/tests/src/Kernel/MigrateTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\TestSqlBase\\:\\:fields\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/migrate/tests/src/Kernel/SqlBaseTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\TestSqlBase\\:\\:getIds\\(\\) should return array\\<array\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate/tests/src/Kernel/SqlBaseTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestSqlBase\\:\\:fields\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/migrate/tests/src/Unit/SqlBaseTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestSqlBase\\:\\:query\\(\\) should return Drupal\\\\Core\\\\Database\\\\Query\\\\SelectInterface but return statement is missing\\.$#"
count: 1
path: modules/migrate/tests/src/Unit/SqlBaseTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestMigrateExecutable\\:\\:setStringTranslation\\(\\) should return \\$this\\(Drupal\\\\Tests\\\\migrate\\\\Unit\\\\TestMigrateExecutable\\) but return statement is missing\\.$#"
count: 1
path: modules/migrate/tests/src/Unit/TestMigrateExecutable.php
-
message: """
#^Cannot unset offset 'menu_ui' on array\\{system\\: 'finished\\:
@ -1658,11 +1298,6 @@ parameters:
count: 1
path: modules/migrate_drupal/tests/src/Unit/MigrationStateUnitTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal\\\\Unit\\\\source\\\\TestDrupalSqlBase\\:\\:query\\(\\) should return Drupal\\\\Core\\\\Database\\\\Query\\\\SelectInterface but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 2
@ -1713,91 +1348,6 @@ parameters:
count: 8
path: modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d6\\\\IdConflictTest\\:\\:getAvailablePaths\\(\\) should return array\\<string\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d6\\\\IdConflictTest\\:\\:getEntityCounts\\(\\) should return array\\<int\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d6\\\\IdConflictTest\\:\\:getEntityCountsIncremental\\(\\) should return array\\<int\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d6\\\\IdConflictTest\\:\\:getMissingPaths\\(\\) should return array\\<string\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d6\\\\NodeClassicTest\\:\\:getAvailablePaths\\(\\) should return array\\<string\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d6\\\\NodeClassicTest\\:\\:getEntityCounts\\(\\) should return array\\<int\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d6\\\\NodeClassicTest\\:\\:getEntityCountsIncremental\\(\\) should return array\\<int\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d6\\\\NodeClassicTest\\:\\:getMissingPaths\\(\\) should return array\\<string\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d7\\\\FilePathTest\\:\\:getAvailablePaths\\(\\) should return array\\<string\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d7\\\\FilePathTest\\:\\:getEntityCounts\\(\\) should return array\\<int\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d7\\\\FilePathTest\\:\\:getEntityCountsIncremental\\(\\) should return array\\<int\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d7\\\\FilePathTest\\:\\:getMissingPaths\\(\\) should return array\\<string\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d7\\\\FilePathTest\\:\\:getSourceBasePath\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d7\\\\IdConflictTest\\:\\:getAvailablePaths\\(\\) should return array\\<string\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d7\\\\IdConflictTest\\:\\:getEntityCounts\\(\\) should return array\\<int\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d7\\\\IdConflictTest\\:\\:getEntityCountsIncremental\\(\\) should return array\\<int\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
-
message: "#^Method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\d7\\\\IdConflictTest\\:\\:getMissingPaths\\(\\) should return array\\<string\\> but return statement is missing\\.$#"
count: 1
path: modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
-
message: "#^Method Drupal\\\\node\\\\ConfigTranslation\\\\NodeTypeMapper\\:\\:setEntity\\(\\) should return bool but return statement is missing\\.$#"
count: 1
@ -1863,11 +1413,6 @@ parameters:
count: 1
path: modules/node/tests/src/Functional/NodeTranslationUITest.php
-
message: "#^Method Drupal\\\\Tests\\\\node\\\\Functional\\\\Rest\\\\NodeTypeResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/node/tests/src/Functional/Rest/NodeTypeResourceTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 3
@ -1888,16 +1433,6 @@ parameters:
count: 1
path: modules/node/tests/src/Kernel/Plugin/migrate/source/d7/NodeTest.php
-
message: "#^Method Drupal\\\\Tests\\\\node\\\\Kernel\\\\Views\\\\FilterUidRevisionTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/node/tests/src/Kernel/Views/FilterUidRevisionTest.php
-
message: "#^Method Drupal\\\\Tests\\\\node\\\\Kernel\\\\Views\\\\RevisionUidTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/node/tests/src/Kernel/Views/RevisionUidTest.php
-
message: "#^Method Drupal\\\\options\\\\Plugin\\\\Field\\\\FieldType\\\\ListFloatItem\\:\\:validateAllowedValue\\(\\) should return string but return statement is missing\\.$#"
count: 1
@ -1948,11 +1483,6 @@ parameters:
count: 1
path: modules/pgsql/src/Driver/Database/pgsql/Upsert.php
-
message: "#^Method Drupal\\\\Tests\\\\rdf\\\\Functional\\\\Rest\\\\RdfMappingResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/rdf/tests/src/Functional/Rest/RdfMappingResourceTestBase.php
-
message: "#^Call to an undefined method Drupal\\\\Tests\\\\rdf\\\\Kernel\\\\Field\\\\FieldRdfaTestBase\\:\\:drupalGet\\(\\)\\.$#"
count: 2
@ -1963,11 +1493,6 @@ parameters:
count: 1
path: modules/responsive_image/src/ResponsiveImageStyleForm.php
-
message: "#^Method Drupal\\\\Tests\\\\responsive_image\\\\Functional\\\\Rest\\\\ResponsiveImageStyleResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/responsive_image/tests/src/Functional/Rest/ResponsiveImageStyleResourceTestBase.php
-
message: "#^Method Drupal\\\\rest\\\\Plugin\\\\Deriver\\\\EntityDeriver\\:\\:getDerivativeDefinition\\(\\) should return array but return statement is missing\\.$#"
count: 1
@ -1978,21 +1503,6 @@ parameters:
count: 1
path: modules/rest/src/Routing/ResourceRoutes.php
-
message: "#^Method Drupal\\\\Tests\\\\rest\\\\Functional\\\\FileUploadResourceTestBase\\:\\:getExpectedUnauthorizedAccessCacheability\\(\\) should return Drupal\\\\Core\\\\Cache\\\\RefinableCacheableDependencyInterface but return statement is missing\\.$#"
count: 1
path: modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\rest\\\\Functional\\\\ResourceTestBase\\:\\:recursiveKSort\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/rest/tests/src/Functional/ResourceTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\rest\\\\Functional\\\\Rest\\\\RestResourceConfigResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php
-
message: "#^Method Drupal\\\\search\\\\Form\\\\SearchPageAddForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#"
count: 1
@ -2038,11 +1548,6 @@ parameters:
count: 1
path: modules/search/tests/modules/search_extra_type/src/Plugin/Search/SearchExtraTypeSearch.php
-
message: "#^Method Drupal\\\\Tests\\\\search\\\\Functional\\\\Rest\\\\SearchPageResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/search/tests/src/Functional/Rest/SearchPageResourceTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 1
@ -2078,11 +1583,6 @@ parameters:
count: 1
path: modules/shortcut/src/ShortcutSetForm.php
-
message: "#^Method Drupal\\\\Tests\\\\shortcut\\\\Functional\\\\Rest\\\\ShortcutSetResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/shortcut/tests/src/Functional/Rest/ShortcutSetResourceTestBase.php
-
message: "#^Method Drupal\\\\system\\\\Controller\\\\BatchController\\:\\:batchPage\\(\\) should return array\\|Symfony\\\\Component\\\\HttpFoundation\\\\Response but return statement is missing\\.$#"
count: 1
@ -2153,11 +1653,6 @@ parameters:
count: 1
path: modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ChangedTestItem.php
-
message: "#^Method Drupal\\\\Tests\\\\entity_test\\\\Functional\\\\Rest\\\\EntityTestBundleResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestBundleResourceTestBase.php
-
message: "#^Access to an undefined property Drupal\\\\error_service_test\\\\Controller\\\\LonelyMonkeyController\\:\\:\\$class\\.$#"
count: 1
@ -2208,21 +1703,6 @@ parameters:
count: 1
path: modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php
-
message: "#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Form\\\\StubForm\\:\\:getFormId\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: modules/system/tests/src/Functional/Form/StubForm.php
-
message: "#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Rest\\\\ActionResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\system\\\\Functional\\\\Rest\\\\MenuResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/system/tests/src/Functional/Rest/MenuResourceTestBase.php
-
message: "#^Call to an undefined method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Common\\\\PageRenderTest\\:\\:error\\(\\)\\.$#"
count: 2
@ -2233,11 +1713,6 @@ parameters:
count: 1
path: modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php
-
message: "#^Method Drupal\\\\Tests\\\\system\\\\Unit\\\\Breadcrumbs\\\\TestPathBasedBreadcrumbBuilder\\:\\:setStringTranslation\\(\\) should return \\$this\\(Drupal\\\\Tests\\\\system\\\\Unit\\\\Breadcrumbs\\\\TestPathBasedBreadcrumbBuilder\\) but return statement is missing\\.$#"
count: 1
path: modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
-
message: "#^Method Drupal\\\\taxonomy\\\\Plugin\\\\migrate\\\\source\\\\d7\\\\TermTranslation\\:\\:prepareRow\\(\\) should return bool but return statement is missing\\.$#"
count: 1
@ -2298,11 +1773,6 @@ parameters:
count: 1
path: modules/taxonomy/src/VocabularyForm.php
-
message: "#^Method Drupal\\\\Tests\\\\taxonomy\\\\Functional\\\\Rest\\\\VocabularyResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/taxonomy/tests/src/Functional/Rest/VocabularyResourceTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 1
@ -2313,16 +1783,6 @@ parameters:
count: 1
path: modules/tour/src/TipPluginBase.php
-
message: "#^Method Drupal\\\\Tests\\\\tour\\\\Functional\\\\Rest\\\\TourResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\tracker\\\\Kernel\\\\Views\\\\TrackerUserUidTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/tracker/tests/src/Kernel/Views/TrackerUserUidTest.php
-
message: "#^Access to an undefined property Drupal\\\\update\\\\UpdateProcessor\\:\\:\\$fetchTasks\\.$#"
count: 2
@ -2388,11 +1848,6 @@ parameters:
count: 1
path: modules/user/src/RoleForm.php
-
message: "#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\Rest\\\\RoleResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/user/tests/src/Functional/Rest/RoleResourceTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 2
@ -2418,16 +1873,6 @@ parameters:
count: 1
path: modules/user/tests/src/Functional/UserRegistrationRestTest.php
-
message: "#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserRegistrationRestTest\\:\\:getExpectedUnauthorizedAccessCacheability\\(\\) should return Drupal\\\\Core\\\\Cache\\\\RefinableCacheableDependencyInterface but return statement is missing\\.$#"
count: 1
path: modules/user/tests/src/Functional/UserRegistrationRestTest.php
-
message: "#^Method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserRegistrationRestTest\\:\\:getExpectedUnauthorizedAccessMessage\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: modules/user/tests/src/Functional/UserRegistrationRestTest.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 1
@ -2443,11 +1888,6 @@ parameters:
count: 1
path: modules/user/tests/src/FunctionalJavascript/UserPasswordResetTest.php
-
message: "#^Method Drupal\\\\Tests\\\\user\\\\Kernel\\\\Views\\\\RelationshipRepresentativeNodeTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/user/tests/src/Kernel/Views/RelationshipRepresentativeNodeTest.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 5
@ -2863,16 +2303,6 @@ parameters:
count: 2
path: modules/views/tests/src/Functional/GlossaryTest.php
-
message: "#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\Rest\\\\ViewResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/views/tests/src/Functional/Rest/ViewResourceTestBase.php
-
message: "#^Method Drupal\\\\Tests\\\\views\\\\Functional\\\\ViewTestBase\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/views/tests/src/Functional/ViewTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 6
@ -2923,11 +2353,6 @@ parameters:
count: 2
path: modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php
-
message: "#^Method Drupal\\\\Tests\\\\views\\\\Kernel\\\\ViewsKernelTestBase\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/views/tests/src/Kernel/ViewsKernelTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 1
@ -2993,11 +2418,6 @@ parameters:
count: 1
path: modules/workflows/src/Form/WorkflowTransitionEditForm.php
-
message: "#^Method Drupal\\\\Tests\\\\workflows\\\\Functional\\\\Rest\\\\WorkflowResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: modules/workflows/tests/src/Functional/Rest/WorkflowResourceTestBase.php
-
message: "#^Method Drupal\\\\workspaces\\\\EntityTypeInfo\\:\\:entityBaseFieldInfo\\(\\) should return array\\<Drupal\\\\Core\\\\Field\\\\FieldDefinitionInterface\\> but return statement is missing\\.$#"
count: 1
@ -3018,46 +2438,11 @@ parameters:
count: 1
path: modules/workspaces/src/WorkspacePublisher.php
-
message: "#^Method Drupal\\\\Tests\\\\workspaces\\\\Kernel\\\\WorkspaceIntegrationTest\\:\\:assertIdenticalResultsetHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php
-
message: "#^Access to an undefined property Drupal\\\\demo_umami_content\\\\InstallHelper\\:\\:\\$module_path\\.$#"
count: 5
path: profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
-
message: "#^Method Drupal\\\\FunctionalTests\\\\Rest\\\\BaseFieldOverrideResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideResourceTestBase.php
-
message: "#^Method Drupal\\\\FunctionalTests\\\\Rest\\\\DateFormatResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: tests/Drupal/FunctionalTests/Rest/DateFormatResourceTestBase.php
-
message: "#^Method Drupal\\\\FunctionalTests\\\\Rest\\\\EntityFormDisplayResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php
-
message: "#^Method Drupal\\\\FunctionalTests\\\\Rest\\\\EntityFormModeResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: tests/Drupal/FunctionalTests/Rest/EntityFormModeResourceTestBase.php
-
message: "#^Method Drupal\\\\FunctionalTests\\\\Rest\\\\EntityViewDisplayResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php
-
message: "#^Method Drupal\\\\FunctionalTests\\\\Rest\\\\EntityViewModeResourceTestBase\\:\\:getNormalizedPostEntity\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: tests/Drupal/FunctionalTests/Rest/EntityViewModeResourceTestBase.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 12
@ -3118,31 +2503,6 @@ parameters:
count: 5
path: tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php
-
message: "#^Method Drupal\\\\KernelTests\\\\KernelTestBase\\:\\:assertEscaped\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: tests/Drupal/KernelTests/KernelTestBase.php
-
message: "#^Method Drupal\\\\KernelTests\\\\KernelTestBase\\:\\:assertNoEscaped\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: tests/Drupal/KernelTests/KernelTestBase.php
-
message: "#^Method Drupal\\\\KernelTests\\\\KernelTestBase\\:\\:assertNoRaw\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: tests/Drupal/KernelTests/KernelTestBase.php
-
message: "#^Method Drupal\\\\KernelTests\\\\KernelTestBase\\:\\:assertRaw\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: tests/Drupal/KernelTests/KernelTestBase.php
-
message: "#^Method Drupal\\\\KernelTests\\\\KernelTestBase\\:\\:assertTextHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: tests/Drupal/KernelTests/KernelTestBase.php
-
message: "#^Parameter \\$template of method Drupal\\\\KernelTests\\\\KernelTestBase\\:\\:prepareTemplate\\(\\) has invalid type Text_Template\\.$#"
count: 1
@ -3263,66 +2623,16 @@ parameters:
count: 3
path: tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\BasicForm\\:\\:buildForm\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\BasicForm\\:\\:getFormId\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\BasicFormNoContainerInjectionInterface\\:\\:buildForm\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\BasicFormNoContainerInjectionInterface\\:\\:getFormId\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\BasicFormNoUpcasting\\:\\:buildForm\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\BasicFormNoUpcasting\\:\\:getFormId\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php
-
message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityTypeBundleInfoTest\\:\\:get\\(\\)\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\FieldDefinitionTest\\:\\:initializeFieldUsingFactory\\(\\) should return Drupal\\\\Core\\\\Field\\\\FieldDefinition but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php
-
message: "#^Cannot unset offset 'data\\-drupal\\-link…' on array\\{data\\-drupal\\-link\\-system\\-path\\: '\\<front\\>'\\}\\.$#"
count: 2
path: tests/Drupal/Tests/Core/EventSubscriber/ActiveLinkResponseFilterTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Form\\\\PrepareCallbackTestForm\\:\\:buildForm\\(\\) should return array but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Form/FormStateTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Image\\\\ImageTest\\:\\:getTestImage\\(\\) should return Drupal\\\\Core\\\\Image\\\\Image but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Image/ImageTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Image\\\\ImageTest\\:\\:getTestImageForOperation\\(\\) should return Drupal\\\\Core\\\\Image\\\\Image but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Image/ImageTest.php
-
message: "#^Call to method getDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#"
count: 3
@ -3333,11 +2643,6 @@ parameters:
count: 1
path: tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Plugin\\\\LazyPluginCollectionTestBase\\:\\:returnPluginMap\\(\\) should return Drupal\\\\Component\\\\Plugin\\\\PluginInspectionInterface\\|PHPUnit\\\\Framework\\\\MockObject\\\\MockObject but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Plugin/LazyPluginCollectionTestBase.php
-
message: "#^\\#access_callback callback class '\\$this\\(Drupal\\\\Tests\\\\Core\\\\Render\\\\RendererCallbackTest\\)' at key '0' does not implement Drupal\\\\Core\\\\Security\\\\TrustedCallbackInterface\\.$#"
count: 1
@ -3432,28 +2737,3 @@ parameters:
message: "#^Call to an undefined method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:fail\\(\\)\\.$#"
count: 3
path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertEscaped\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertNoEscaped\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertNoRaw\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertRaw\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php
-
message: "#^Method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertTextHelper\\(\\) should return bool but return statement is missing\\.$#"
count: 1
path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

View File

@ -86,6 +86,7 @@ abstract class BaseFieldOverrideResourceTestBase extends ConfigEntityResourceTes
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -71,6 +71,7 @@ abstract class DateFormatResourceTestBase extends ConfigEntityResourceTestBase {
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -137,6 +137,7 @@ abstract class EntityFormDisplayResourceTestBase extends ConfigEntityResourceTes
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -69,6 +69,7 @@ abstract class EntityFormModeResourceTestBase extends ConfigEntityResourceTestBa
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -95,6 +95,7 @@ abstract class EntityViewDisplayResourceTestBase extends ConfigEntityResourceTes
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
/**

View File

@ -69,6 +69,7 @@ abstract class EntityViewModeResourceTestBase extends ConfigEntityResourceTestBa
*/
protected function getNormalizedPostEntity() {
// @todo Update in https://www.drupal.org/node/2300677.
return [];
}
}

View File

@ -429,11 +429,8 @@ trait AssertContentTrait {
* in test output. Use 'Debug' to indicate this is debugging output. Do not
* translate this string. Defaults to 'Other'; most tests do not override
* this default.
*
* @return bool
* TRUE on pass, FALSE on fail.
*/
protected function assertRaw($raw, $message = '', $group = 'Other') {
protected function assertRaw($raw, $message = '', $group = 'Other'): void {
if (!$message) {
$message = 'Raw "' . Html::escape($raw) . '" found';
}
@ -457,11 +454,8 @@ trait AssertContentTrait {
* in test output. Use 'Debug' to indicate this is debugging output. Do not
* translate this string. Defaults to 'Other'; most tests do not override
* this default.
*
* @return bool
* TRUE on pass, FALSE on fail.
*/
protected function assertNoRaw($raw, $message = '', $group = 'Other') {
protected function assertNoRaw($raw, $message = '', $group = 'Other'): void {
if (!$message) {
$message = 'Raw "' . Html::escape($raw) . '" not found';
}
@ -485,11 +479,8 @@ trait AssertContentTrait {
* in test output. Use 'Debug' to indicate this is debugging output. Do not
* translate this string. Defaults to 'Other'; most tests do not override
* this default.
*
* @return bool
* TRUE on pass, FALSE on fail.
*/
protected function assertEscaped($raw, $message = '', $group = 'Other') {
protected function assertEscaped($raw, $message = '', $group = 'Other'): void {
if (!$message) {
$message = 'Escaped "' . Html::escape($raw) . '" found';
}
@ -514,11 +505,8 @@ trait AssertContentTrait {
* in test output. Use 'Debug' to indicate this is debugging output. Do not
* translate this string. Defaults to 'Other'; most tests do not override
* this default.
*
* @return bool
* TRUE on pass, FALSE on fail.
*/
protected function assertNoEscaped($raw, $message = '', $group = 'Other') {
protected function assertNoEscaped($raw, $message = '', $group = 'Other'): void {
if (!$message) {
$message = 'Escaped "' . Html::escape($raw) . '" not found';
}
@ -544,13 +532,10 @@ trait AssertContentTrait {
* translate this string. Defaults to 'Other'; most tests do not override
* this default.
*
* @return bool
* TRUE on pass, FALSE on fail.
*
* @see \Drupal\simpletest\AssertContentTrait::assertRaw()
*/
protected function assertText($text, $message = '', $group = 'Other') {
return $this->assertTextHelper($text, $message, $group, FALSE);
protected function assertText($text, $message = '', $group = 'Other'): void {
$this->assertTextHelper($text, $message, $group, FALSE);
}
/**
@ -572,13 +557,10 @@ trait AssertContentTrait {
* translate this string. Defaults to 'Other'; most tests do not override
* this default.
*
* @return bool
* TRUE on pass, FALSE on fail.
*
* @see \Drupal\simpletest\AssertContentTrait::assertNoRaw()
*/
protected function assertNoText($text, $message = '', $group = 'Other') {
return $this->assertTextHelper($text, $message, $group, TRUE);
protected function assertNoText($text, $message = '', $group = 'Other'): void {
$this->assertTextHelper($text, $message, $group, TRUE);
}
/**
@ -601,11 +583,8 @@ trait AssertContentTrait {
* @param bool $not_exists
* (optional) TRUE if this text should not exist, FALSE if it should.
* Defaults to TRUE.
*
* @return bool
* TRUE on pass, FALSE on fail.
*/
protected function assertTextHelper($text, $message = '', $group = 'Other', $not_exists = TRUE) {
protected function assertTextHelper($text, $message = '', $group = 'Other', $not_exists = TRUE): void {
if (!$message) {
$message = !$not_exists ? new FormattableMarkup('"@text" found', ['@text' => $text]) : new FormattableMarkup('"@text" not found', ['@text' => $text]);
}

View File

@ -515,12 +515,14 @@ class BasicForm extends FormBase {
* {@inheritdoc}
*/
public function getFormId() {
return '';
}
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state, EntityInterface $entity_test = NULL) {
return [];
}
/**
@ -540,12 +542,14 @@ class BasicFormNoUpcasting extends FormBase {
* {@inheritdoc}
*/
public function getFormId() {
return '';
}
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state, $entity_test = NULL) {
return [];
}
/**
@ -562,12 +566,14 @@ class BasicFormNoContainerInjectionInterface implements FormInterface {
* {@inheritdoc}
*/
public function getFormId() {
return '';
}
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state, EntityInterface $entity_test = NULL) {
return [];
}
/**

View File

@ -385,6 +385,7 @@ class FieldDefinitionTest extends UnitTestCase {
$definition->setFieldStorageDefinition($this->storageDefinition);
return $definition;
}
throw new \InvalidArgumentException("Invalid factory name '$factory_name' passed to " . __METHOD__);
}
}

View File

@ -441,7 +441,9 @@ class PrepareCallbackTestForm implements FormInterface {
return 'test_form';
}
public function buildForm(array $form, FormStateInterface $form_state) {}
public function buildForm(array $form, FormStateInterface $form_state) {
return [];
}
public function validateForm(array &$form, FormStateInterface $form_state) {}

View File

@ -116,6 +116,8 @@ class ImageTest extends UnitTestCase {
}
$this->image = new Image($this->toolkit, $this->source);
return $this->image;
}
/**
@ -140,6 +142,8 @@ class ImageTest extends UnitTestCase {
->will($this->returnValue($this->toolkitOperation));
$this->image = new Image($this->toolkit, $this->source);
return $this->image;
}
/**

View File

@ -86,9 +86,7 @@ abstract class LazyPluginCollectionTestBase extends UnitTestCase {
* The mock plugin object.
*/
public function returnPluginMap($plugin_id) {
if (isset($this->pluginInstances[$plugin_id])) {
return $this->pluginInstances[$plugin_id];
}
return $this->pluginInstances[$plugin_id];
}
/**