summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-02-17 01:34:42 (GMT)
committerNathaniel Catchpole2016-02-17 01:34:42 (GMT)
commit30c5c2da00a6f228bb1df564f66da7006dde65f7 (patch)
treef1f5a08aff8493d269e5f11da3c8c345923352a0
parent5a25b3fba9dd2371ef497102bb7aa7f090f09d67 (diff)
Issue #2627038 by ashhishhh, jordanpagewhite, snehi, Manjit.Singh, jhodgdon, sudhanshug: Fix docblock for createTerm in TaxonomyTestBase.php
-rw-r--r--core/modules/taxonomy/src/Tests/Views/TaxonomyTestBase.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyTestBase.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyTestBase.php
index cb16f1a..cc83adb 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyTestBase.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyTestBase.php
@@ -55,6 +55,9 @@ abstract class TaxonomyTestBase extends ViewTestBase {
*/
protected $term2;
+ /**
+ * {@inheritdoc}
+ */
protected function setUp() {
parent::setUp();
$this->mockStandardInstall();
@@ -119,10 +122,17 @@ abstract class TaxonomyTestBase extends ViewTestBase {
}
/**
- * Returns a new term with random properties in vocabulary $vid.
+ * Creates and returns a taxonomy term.
*
* @param array $settings
- * (Optional) An associative array of settings to pass to `entity_create`.
+ * (optional) An array of values to override the following default
+ * properties of the term:
+ * - name: A random string.
+ * - description: A random string.
+ * - format: First available text format.
+ * - vid: Vocabulary ID of self::$vocabulary object.
+ * - langcode: LANGCODE_NOT_SPECIFIED.
+ * Defaults to an empty array.
*
* @return \Drupal\taxonomy\Entity\Term
* The created taxonomy term.