Issue #3478185 by quietone, larowlan: Fix MissingParamType for tests
(cherry picked from commit 7a8cfc7aa1
)
merge-requests/10102/head
parent
1a34d1b635
commit
38e34374cd
|
@ -123,11 +123,11 @@ abstract class ConfigTranslationUiTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Gets translation from locale storage.
|
||||
*
|
||||
* @param $config_name
|
||||
* @param string $config_name
|
||||
* Configuration object.
|
||||
* @param $key
|
||||
* @param string $key
|
||||
* Translation configuration field key.
|
||||
* @param $langcode
|
||||
* @param string $langcode
|
||||
* String language code to load translation.
|
||||
*
|
||||
* @return bool|mixed
|
||||
|
|
|
@ -551,7 +551,7 @@ class ContentTranslationFieldSyncRevisionTest extends EntityKernelTestBase {
|
|||
/**
|
||||
* Asserts that the latest revision has the expected field values.
|
||||
*
|
||||
* @param $entity_id
|
||||
* @param string $entity_id
|
||||
* The entity ID.
|
||||
* @param array $expected_values
|
||||
* An array of expected values in the following order:
|
||||
|
|
|
@ -16,7 +16,7 @@ abstract class FieldTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Generate random values for a field_test field.
|
||||
*
|
||||
* @param $cardinality
|
||||
* @param int $cardinality
|
||||
* Number of values to generate.
|
||||
*
|
||||
* @return array
|
||||
|
@ -38,14 +38,14 @@ abstract class FieldTestBase extends BrowserTestBase {
|
|||
*
|
||||
* @param \Drupal\Core\Entity\EntityInterface $entity
|
||||
* The entity to test.
|
||||
* @param $field_name
|
||||
* @param string $field_name
|
||||
* The name of the field to test
|
||||
* @param $expected_values
|
||||
* @param array $expected_values
|
||||
* The array of expected values.
|
||||
* @param $langcode
|
||||
* @param string $langcode
|
||||
* (Optional) The language code for the values. Defaults to
|
||||
* \Drupal\Core\Language\LanguageInterface::LANGCODE_DEFAULT.
|
||||
* @param $column
|
||||
* @param string $column
|
||||
* (Optional) The name of the column to check. Defaults to 'value'.
|
||||
*/
|
||||
public function assertFieldValues(EntityInterface $entity, $field_name, $expected_values, $langcode = LanguageInterface::LANGCODE_DEFAULT, $column = 'value') {
|
||||
|
|
|
@ -54,11 +54,11 @@ class BulkDeleteTest extends FieldKernelTestBase {
|
|||
/**
|
||||
* Tests that the expected hooks have been invoked on the expected entities.
|
||||
*
|
||||
* @param $expected_hooks
|
||||
* @param string[] $expected_hooks
|
||||
* An array keyed by hook name, with one entry per expected invocation.
|
||||
* Each entry is the value of the "$entity" parameter the hook is expected
|
||||
* to have been passed.
|
||||
* @param $actual_hooks
|
||||
* @param array $actual_hooks
|
||||
* The array of actual hook invocations recorded by field_test_memorize().
|
||||
*/
|
||||
public function checkHooksInvocations($expected_hooks, $actual_hooks): void {
|
||||
|
|
|
@ -165,7 +165,7 @@ abstract class FieldKernelTestBase extends KernelTestBase {
|
|||
/**
|
||||
* Generate random values for a field_test field.
|
||||
*
|
||||
* @param $cardinality
|
||||
* @param int $cardinality
|
||||
* Number of values to generate.
|
||||
*
|
||||
* @return array
|
||||
|
@ -187,14 +187,14 @@ abstract class FieldKernelTestBase extends KernelTestBase {
|
|||
*
|
||||
* @param \Drupal\Core\Entity\EntityInterface $entity
|
||||
* The entity to test.
|
||||
* @param $field_name
|
||||
* @param string $field_name
|
||||
* The name of the field to test
|
||||
* @param $expected_values
|
||||
* @param array $expected_values
|
||||
* The array of expected values.
|
||||
* @param $langcode
|
||||
* @param string $langcode
|
||||
* (Optional) The language code for the values. Defaults to
|
||||
* \Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_SPECIFIED.
|
||||
* @param $column
|
||||
* @param string $column
|
||||
* (Optional) The name of the column to check. Defaults to 'value'.
|
||||
*/
|
||||
protected function assertFieldValues(EntityInterface $entity, $field_name, $expected_values, $langcode = LanguageInterface::LANGCODE_NOT_SPECIFIED, $column = 'value') {
|
||||
|
|
|
@ -104,7 +104,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
|
|||
* The File to be uploaded.
|
||||
* @param string $field_name
|
||||
* The name of the field on which the files should be saved.
|
||||
* @param $nid_or_type
|
||||
* @param int|string $nid_or_type
|
||||
* A numeric node id to upload files to an existing node, or a string
|
||||
* indicating the desired bundle for a new node.
|
||||
* @param bool $new_revision
|
||||
|
@ -126,7 +126,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
|
|||
* The files to be uploaded.
|
||||
* @param string $field_name
|
||||
* The name of the field on which the files should be saved.
|
||||
* @param $nid_or_type
|
||||
* @param int|string $nid_or_type
|
||||
* A numeric node id to upload files to an existing node, or a string
|
||||
* indicating the desired bundle for a new node.
|
||||
* @param bool $new_revision
|
||||
|
|
|
@ -94,13 +94,13 @@ abstract class ImageFieldTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Upload an image to a node.
|
||||
*
|
||||
* @param $image
|
||||
* @param \stdClass $image
|
||||
* A file object representing the image to upload.
|
||||
* @param $field_name
|
||||
* @param string $field_name
|
||||
* Name of the image field the image should be attached to.
|
||||
* @param $type
|
||||
* @param string $type
|
||||
* The type of node to create.
|
||||
* @param $alt
|
||||
* @param string $alt
|
||||
* The alt text for the image. Use if the field settings require alt text.
|
||||
*/
|
||||
public function uploadNodeImage($image, $field_name, $type, $alt = '') {
|
||||
|
|
|
@ -243,7 +243,7 @@ class LinkFieldUITest extends BrowserTestBase {
|
|||
/**
|
||||
* Returns the raw HTML for the given field.
|
||||
*
|
||||
* @param $field_name
|
||||
* @param string $field_name
|
||||
* The name of the field for which to return the HTML.
|
||||
*
|
||||
* @return string
|
||||
|
|
|
@ -251,7 +251,7 @@ abstract class MigrateTestBase extends KernelTestBase implements MigrateMessageI
|
|||
/**
|
||||
* Gets the migration plugin.
|
||||
*
|
||||
* @param $plugin_id
|
||||
* @param string $plugin_id
|
||||
* The plugin ID of the migration to get.
|
||||
*
|
||||
* @return \Drupal\migrate\Plugin\Migration
|
||||
|
|
|
@ -181,7 +181,7 @@ class EntityRevisionTest extends UnitTestCase {
|
|||
*
|
||||
* @see \Drupal\Tests\migrate\Unit\Destination\EntityRevision
|
||||
*
|
||||
* @param $configuration
|
||||
* @param array $configuration
|
||||
* Configuration for the destination.
|
||||
* @param string $plugin_id
|
||||
* The plugin id.
|
||||
|
|
|
@ -26,10 +26,10 @@ class FileCopyTest extends MigrateProcessTestCase {
|
|||
*
|
||||
* @param array $configuration
|
||||
* The plugin configuration.
|
||||
* @param $expected
|
||||
* @param \Drupal\Core\File\FileExists $expected
|
||||
* The expected value of the plugin configuration.
|
||||
*/
|
||||
public function testFileProcessBaseConstructor($configuration, $expected): void {
|
||||
public function testFileProcessBaseConstructor(array $configuration, FileExists $expected): void {
|
||||
$this->assertPlugin($configuration, $expected);
|
||||
}
|
||||
|
||||
|
|
|
@ -83,11 +83,11 @@ class FormatDateTest extends MigrateProcessTestCase {
|
|||
*
|
||||
* @dataProvider datesDataProvider
|
||||
*
|
||||
* @param $configuration
|
||||
* @param array $configuration
|
||||
* The configuration of the migration process plugin.
|
||||
* @param $value
|
||||
* @param string $value
|
||||
* The source value for the migration process plugin.
|
||||
* @param $expected
|
||||
* @param string $expected
|
||||
* The expected value of the migration process plugin.
|
||||
*/
|
||||
public function testTransform($configuration, $value, $expected): void {
|
||||
|
|
|
@ -120,7 +120,7 @@ class NodeAccessLanguageFallbackTest extends NodeTestBase {
|
|||
* @param int $count
|
||||
* The number of rows expected by the query (equal to the translation
|
||||
* count).
|
||||
* @param $langcode
|
||||
* @param string $langcode
|
||||
* The expected language code set as the fallback property.
|
||||
*/
|
||||
public function checkRecords($count, $langcode = 'hu'): void {
|
||||
|
|
|
@ -467,7 +467,7 @@ class NodeRevisionsTest extends NodeTestBase {
|
|||
*
|
||||
* @param \Drupal\node\NodeInterface $node
|
||||
* The node object.
|
||||
* @param $count
|
||||
* @param int $count
|
||||
* The number of revisions to be created.
|
||||
*/
|
||||
protected function createRevisions(NodeInterface $node, $count): void {
|
||||
|
|
|
@ -1445,9 +1445,9 @@ abstract class EntityResourceTestBase extends ResourceTestBase {
|
|||
* A response may include more properties, we only need to ensure that all
|
||||
* items in the request exist in the response.
|
||||
*
|
||||
* @param $expected
|
||||
* @param array $expected
|
||||
* An array of expected values, may contain further nested arrays.
|
||||
* @param $actual
|
||||
* @param array $actual
|
||||
* The object to test.
|
||||
*/
|
||||
protected function assertEntityArraySubset($expected, $actual) {
|
||||
|
|
|
@ -122,7 +122,7 @@ class ContentEntityNormalizerTest extends UnitTestCase {
|
|||
/**
|
||||
* Creates a mock content entity.
|
||||
*
|
||||
* @param $definitions
|
||||
* @param array $definitions
|
||||
* The properties the will be returned.
|
||||
*
|
||||
* @return \PHPUnit\Framework\MockObject\MockObject
|
||||
|
|
|
@ -220,7 +220,7 @@ class ProcessingTest extends BrowserTestBase {
|
|||
/**
|
||||
* Triggers a pass if the texts were found in order in the raw content.
|
||||
*
|
||||
* @param $texts
|
||||
* @param array $texts
|
||||
* Array of raw strings to look for.
|
||||
*
|
||||
* @internal
|
||||
|
|
|
@ -18,11 +18,11 @@ abstract class CacheTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Checks whether or not a cache entry exists.
|
||||
*
|
||||
* @param $cid
|
||||
* @param string $cid
|
||||
* The cache id.
|
||||
* @param $var
|
||||
* @param mixed $var
|
||||
* The variable the cache should contain.
|
||||
* @param $bin
|
||||
* @param string|null $bin
|
||||
* The bin the cache item was stored in.
|
||||
*
|
||||
* @return bool
|
||||
|
@ -41,13 +41,13 @@ abstract class CacheTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Asserts that a cache entry exists.
|
||||
*
|
||||
* @param $message
|
||||
* @param string $message
|
||||
* Message to display.
|
||||
* @param $var
|
||||
* @param string|null $var
|
||||
* The variable the cache should contain.
|
||||
* @param $cid
|
||||
* @param string|null $cid
|
||||
* The cache id.
|
||||
* @param $bin
|
||||
* @param string|null $bin
|
||||
* The bin the cache item was stored in.
|
||||
*/
|
||||
protected function assertCacheExists($message, $var = NULL, $cid = NULL, $bin = NULL) {
|
||||
|
@ -67,11 +67,11 @@ abstract class CacheTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Asserts that a cache entry has been removed.
|
||||
*
|
||||
* @param $message
|
||||
* @param string $message
|
||||
* Message to display.
|
||||
* @param $cid
|
||||
* @param string|null $cid
|
||||
* The cache id.
|
||||
* @param $bin
|
||||
* @param string|null $bin
|
||||
* The bin the cache item was stored in.
|
||||
*/
|
||||
public function assertCacheRemoved($message, $cid = NULL, $bin = NULL) {
|
||||
|
|
|
@ -31,7 +31,7 @@ trait AssertBreadcrumbTrait {
|
|||
* (optional) An associative array whose keys are link paths and whose
|
||||
* values are link titles (not sanitized) of an expected active trail in a
|
||||
* menu tree output on the page.
|
||||
* @param $last_active
|
||||
* @param bool $last_active
|
||||
* (optional) Whether the last link in $tree is expected to be active (TRUE)
|
||||
* or just to be in the active trail (FALSE).
|
||||
* @param string $active_trail_class
|
||||
|
|
|
@ -39,7 +39,7 @@ abstract class ModuleTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Assert that all tables defined in a module's hook_schema() exist.
|
||||
*
|
||||
* @param $module
|
||||
* @param string $module
|
||||
* The name of the module.
|
||||
*/
|
||||
public function assertModuleTablesExist($module) {
|
||||
|
@ -57,7 +57,7 @@ abstract class ModuleTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Assert that none of the tables defined in a module's hook_schema() exist.
|
||||
*
|
||||
* @param $module
|
||||
* @param string $module
|
||||
* The name of the module.
|
||||
*/
|
||||
public function assertModuleTablesDoNotExist($module) {
|
||||
|
@ -127,9 +127,9 @@ abstract class ModuleTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Assert the list of modules are enabled or disabled.
|
||||
*
|
||||
* @param $modules
|
||||
* @param array $modules
|
||||
* Module list to check.
|
||||
* @param $enabled
|
||||
* @param bool $enabled
|
||||
* Expected module state.
|
||||
*/
|
||||
public function assertModules(array $modules, $enabled) {
|
||||
|
@ -148,21 +148,21 @@ abstract class ModuleTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Verify a log entry was entered for a module's status change.
|
||||
*
|
||||
* @param $type
|
||||
* @param string $type
|
||||
* The category to which this message belongs.
|
||||
* @param $message
|
||||
* @param string $message
|
||||
* The message to store in the log. Keep $message translatable
|
||||
* by not concatenating dynamic values into it! Variables in the
|
||||
* message should be added by using placeholder strings alongside
|
||||
* the variables argument to declare the value of the placeholders.
|
||||
* See t() for documentation on how $message and $variables interact.
|
||||
* @param $variables
|
||||
* @param array $variables
|
||||
* Array of variables to replace in the message on display or
|
||||
* NULL if message is already translated or not possible to
|
||||
* translate.
|
||||
* @param $severity
|
||||
* @param int $severity
|
||||
* The severity of the message, as per RFC 3164.
|
||||
* @param $link
|
||||
* @param string $link
|
||||
* A link to associate with the message.
|
||||
*/
|
||||
public function assertLogMessage($type, $message, $variables = [], $severity = RfcLogLevel::NOTICE, $link = '') {
|
||||
|
|
|
@ -268,7 +268,7 @@ class SessionHttpsTest extends BrowserTestBase {
|
|||
/**
|
||||
* Builds a URL for submitting a mock HTTPS request to HTTP test environments.
|
||||
*
|
||||
* @param $url
|
||||
* @param string $url
|
||||
* A Drupal path such as 'user/login'.
|
||||
*
|
||||
* @return string
|
||||
|
@ -281,7 +281,7 @@ class SessionHttpsTest extends BrowserTestBase {
|
|||
/**
|
||||
* Builds a URL for submitting a mock HTTP request to HTTPS test environments.
|
||||
*
|
||||
* @param $url
|
||||
* @param string $url
|
||||
* A Drupal path such as 'user/login'.
|
||||
*
|
||||
* @return string
|
||||
|
|
|
@ -168,11 +168,11 @@ class UrlTest extends KernelTestBase {
|
|||
/**
|
||||
* Checks for class existence in link.
|
||||
*
|
||||
* @param $attribute
|
||||
* @param string $attribute
|
||||
* Attribute to be checked.
|
||||
* @param $link
|
||||
* @param string $link
|
||||
* URL to search.
|
||||
* @param $class
|
||||
* @param string $class
|
||||
* Element class to search for.
|
||||
*
|
||||
* @return bool
|
||||
|
|
|
@ -58,9 +58,9 @@ class ProgrammaticTest extends KernelTestBase {
|
|||
/**
|
||||
* Programmatically submits the form_test.module form with the given values.
|
||||
*
|
||||
* @param $values
|
||||
* @param array $values
|
||||
* An array of field values to be submitted.
|
||||
* @param $valid_input
|
||||
* @param bool $valid_input
|
||||
* A boolean indicating whether or not the form submission is expected to
|
||||
* be valid.
|
||||
*/
|
||||
|
|
|
@ -30,9 +30,9 @@ class MigrateMenuTest extends MigrateDrupal7TestBase {
|
|||
* The menu ID.
|
||||
* @param string $language
|
||||
* The menu language.
|
||||
* @param $label
|
||||
* @param string $label
|
||||
* The menu label.
|
||||
* @param $description
|
||||
* @param string $description
|
||||
* The menu description.
|
||||
*
|
||||
* @internal
|
||||
|
|
|
@ -28,7 +28,7 @@ class HtmlToTextTest extends UnitTestCase {
|
|||
/**
|
||||
* Converts a string to its PHP source equivalent for display in test messages.
|
||||
*
|
||||
* @param $text
|
||||
* @param string $text
|
||||
* The text string to convert.
|
||||
*
|
||||
* @return string
|
||||
|
|
|
@ -65,9 +65,9 @@ class MigrateTaxonomyTermTest extends MigrateDrupal7TestBase {
|
|||
* Entity ID to load and check.
|
||||
* @param string $expected_language
|
||||
* The language code for this term.
|
||||
* @param $expected_label
|
||||
* @param string $expected_label
|
||||
* The label the migrated entity should have.
|
||||
* @param $expected_vid
|
||||
* @param string $expected_vid
|
||||
* The parent vocabulary the migrated entity should have.
|
||||
* @param string|null $expected_description
|
||||
* The description the migrated entity should have.
|
||||
|
@ -204,7 +204,7 @@ class MigrateTaxonomyTermTest extends MigrateDrupal7TestBase {
|
|||
/**
|
||||
* Retrieves the parent term IDs for a given term.
|
||||
*
|
||||
* @param $tid
|
||||
* @param int $tid
|
||||
* ID of the term to check.
|
||||
*
|
||||
* @return array
|
||||
|
|
|
@ -33,11 +33,11 @@ class MigrateTaxonomyVocabularyTest extends MigrateDrupal7TestBase {
|
|||
*
|
||||
* @param string $id
|
||||
* Entity ID to load and check.
|
||||
* @param $expected_label
|
||||
* @param string $expected_label
|
||||
* The label the migrated entity should have.
|
||||
* @param $expected_description
|
||||
* @param string $expected_description
|
||||
* The description the migrated entity should have.
|
||||
* @param $expected_weight
|
||||
* @param string $expected_weight
|
||||
* The weight the migrated entity should have.
|
||||
*
|
||||
* @internal
|
||||
|
|
|
@ -64,10 +64,10 @@ abstract class UpdateTestBase extends BrowserTestBase {
|
|||
/**
|
||||
* Refreshes the update status based on the desired available update scenario.
|
||||
*
|
||||
* @param $xml_map
|
||||
* @param array $xml_map
|
||||
* Array that maps project names to availability scenarios to fetch. The key
|
||||
* '#all' is used if a project-specific mapping is not defined.
|
||||
* @param $url
|
||||
* @param string $url
|
||||
* (optional) A string containing the URL to fetch update data from.
|
||||
* Defaults to 'update-test'.
|
||||
*
|
||||
|
|
|
@ -211,9 +211,9 @@ class DefaultViewsTest extends UITestBase {
|
|||
* various views listing pages, and they might have tokens in them. So we
|
||||
* need special code to find the correct one to click.
|
||||
*
|
||||
* @param $label
|
||||
* @param string $label
|
||||
* Text between the anchor tags of the desired link.
|
||||
* @param $unique_href_part
|
||||
* @param string $unique_href_part
|
||||
* A unique string that is expected to occur within the href of the desired
|
||||
* link. For example, if the link URL is expected to look like
|
||||
* "admin/structure/views/view/glossary/*", then "/glossary/" could be
|
||||
|
|
|
@ -498,7 +498,7 @@ abstract class BuildTestBase extends TestCase {
|
|||
/**
|
||||
* Checks whether a port is available.
|
||||
*
|
||||
* @param $port
|
||||
* @param int $port
|
||||
* A number between 1024 and 65536.
|
||||
*
|
||||
* @return bool
|
||||
|
|
|
@ -528,7 +528,7 @@ JS;
|
|||
* quotes respectively therefore we can not escape them when testing for
|
||||
* escaped HTML.
|
||||
*
|
||||
* @param $raw
|
||||
* @param string $raw
|
||||
* The raw string to escape.
|
||||
*
|
||||
* @return string
|
||||
|
|
|
@ -154,7 +154,7 @@ class EndOfTransactionQueriesTest extends KernelTestBase {
|
|||
*
|
||||
* @param string[] $statements
|
||||
* A list of query statements.
|
||||
* @param $table_name
|
||||
* @param string $table_name
|
||||
* The name of the table to filter by.
|
||||
*
|
||||
* @return string[]
|
||||
|
|
|
@ -72,7 +72,7 @@ class EntityCrudHookTest extends EntityKernelTestBase {
|
|||
* Module entity_crud_hook_test implements all core entity CRUD hooks and
|
||||
* stores a message for each in $GLOBALS['entity_crud_hook_test'].
|
||||
*
|
||||
* @param array $messages
|
||||
* @param string[] $messages
|
||||
* An array of plain-text messages in the order they should appear.
|
||||
*
|
||||
* @internal
|
||||
|
|
|
@ -79,11 +79,11 @@ abstract class FileTestBase extends KernelTestBase {
|
|||
/**
|
||||
* Helper function to test the permissions of a file.
|
||||
*
|
||||
* @param $filepath
|
||||
* @param string $filepath
|
||||
* String file path.
|
||||
* @param $expected_mode
|
||||
* @param int $expected_mode
|
||||
* Octal integer like 0664 or 0777.
|
||||
* @param $message
|
||||
* @param string|null $message
|
||||
* Optional message.
|
||||
*/
|
||||
public function assertFilePermissions($filepath, $expected_mode, $message = NULL) {
|
||||
|
@ -114,11 +114,11 @@ abstract class FileTestBase extends KernelTestBase {
|
|||
/**
|
||||
* Helper function to test the permissions of a directory.
|
||||
*
|
||||
* @param $directory
|
||||
* @param string $directory
|
||||
* String directory path.
|
||||
* @param $expected_mode
|
||||
* @param int $expected_mode
|
||||
* Octal integer like 0664 or 0777.
|
||||
* @param $message
|
||||
* @param string|null $message
|
||||
* Optional message.
|
||||
*/
|
||||
public function assertDirectoryPermissions($directory, $expected_mode, $message = NULL) {
|
||||
|
@ -170,13 +170,13 @@ abstract class FileTestBase extends KernelTestBase {
|
|||
/**
|
||||
* Create a file and return the URI of it.
|
||||
*
|
||||
* @param $filepath
|
||||
* @param string|null $filepath
|
||||
* Optional string specifying the file path. If none is provided then a
|
||||
* randomly named file will be created in the site's files directory.
|
||||
* @param $contents
|
||||
* @param string|null $contents
|
||||
* Optional contents to save into the file. If a NULL value is provided an
|
||||
* arbitrary string will be used.
|
||||
* @param $scheme
|
||||
* @param string|null $scheme
|
||||
* Optional string indicating the stream scheme to use. Drupal core includes
|
||||
* public, private, and temporary. The public wrapper is the default.
|
||||
*
|
||||
|
|
|
@ -84,7 +84,7 @@ class GraphTest extends TestCase {
|
|||
/**
|
||||
* Normalizes a graph.
|
||||
*
|
||||
* @param $graph
|
||||
* @param array $graph
|
||||
* A graph array processed by \Drupal\Component\Graph\Graph::searchAndSort()
|
||||
*
|
||||
* @return array
|
||||
|
@ -186,9 +186,9 @@ class GraphTest extends TestCase {
|
|||
/**
|
||||
* Helper function to output vertices as comma-separated list.
|
||||
*
|
||||
* @param $paths
|
||||
* @param array $paths
|
||||
* An array containing a list of vertices.
|
||||
* @param $keys
|
||||
* @param bool $keys
|
||||
* (optional) Whether to output the keys of $paths instead of the values.
|
||||
*/
|
||||
protected function displayArray($paths, $keys = FALSE): string {
|
||||
|
|
|
@ -19,9 +19,9 @@ class PlainTextOutputTest extends TestCase {
|
|||
/**
|
||||
* Tests ::renderFromHtml().
|
||||
*
|
||||
* @param $expected
|
||||
* @param string $expected
|
||||
* The expected formatted value.
|
||||
* @param $string
|
||||
* @param string $string
|
||||
* A string to be formatted.
|
||||
* @param array $args
|
||||
* (optional) An associative array of replacements to make. Defaults to
|
||||
|
|
|
@ -100,7 +100,7 @@ class BackendCompilerPassTest extends UnitTestCase {
|
|||
* This is necessary because the container clone does not clone the parameter
|
||||
* bag so the setParameter() call effects the parent container as well.
|
||||
*
|
||||
* @param $service
|
||||
* @param \Symfony\Component\DependencyInjection\Definition $service
|
||||
* The service definition.
|
||||
*
|
||||
* @return \Symfony\Component\DependencyInjection\ContainerBuilder
|
||||
|
@ -120,7 +120,7 @@ class BackendCompilerPassTest extends UnitTestCase {
|
|||
* This is necessary because the container clone does not clone the parameter
|
||||
* bag so the setParameter() call effects the parent container as well.
|
||||
*
|
||||
* @param $service
|
||||
* @param \Symfony\Component\DependencyInjection\Definition $service
|
||||
* The service definition.
|
||||
*
|
||||
* @return \Symfony\Component\DependencyInjection\ContainerBuilder
|
||||
|
@ -138,7 +138,7 @@ class BackendCompilerPassTest extends UnitTestCase {
|
|||
* This is necessary because the container clone does not clone the parameter
|
||||
* bag so the setParameter() call effects the parent container as well.
|
||||
*
|
||||
* @param $service
|
||||
* @param \Symfony\Component\DependencyInjection\Definition $service
|
||||
* The service definition.
|
||||
*
|
||||
* @return \Symfony\Component\DependencyInjection\ContainerBuilder
|
||||
|
|
|
@ -117,9 +117,9 @@ abstract class LocalTaskIntegrationTestBase extends UnitTestCase {
|
|||
/**
|
||||
* Tests integration for local tasks.
|
||||
*
|
||||
* @param $route_name
|
||||
* @param string $route_name
|
||||
* Route name to base task building on.
|
||||
* @param $expected_tasks
|
||||
* @param array $expected_tasks
|
||||
* A list of tasks groups by level expected at the given route
|
||||
* @param array $route_params
|
||||
* (optional) A list of route parameters used to resolve tasks.
|
||||
|
|
|
@ -43,10 +43,10 @@ trait TestFileCreationTrait {
|
|||
* is prefixed with one of the above types, it will get returned as well, even
|
||||
* on subsequent calls.
|
||||
*
|
||||
* @param $type
|
||||
* @param string $type
|
||||
* File type, possible values: 'binary', 'html', 'image', 'javascript',
|
||||
* 'php', 'sql', 'text'.
|
||||
* @param $size
|
||||
* @param int|null $size
|
||||
* (optional) File size in bytes to match. Defaults to NULL, which will not
|
||||
* filter the returned list by size.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue