diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyTermFilterDepthTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyTermFilterDepthTest.php index 4c181c4..2704c9f 100644 --- a/core/modules/taxonomy/src/Tests/Views/TaxonomyTermFilterDepthTest.php +++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyTermFilterDepthTest.php @@ -7,7 +7,6 @@ namespace Drupal\taxonomy\Tests\Views; -use Drupal\views\Tests\ViewTestData; use Drupal\views\Views; /** @@ -44,7 +43,7 @@ public function setUp() { parent::setUp(); // Create a hierarchy 3 deep. Note the parent setup function creates two - // top-level terms w/o childrend. + // top-level terms w/o children. $first = $this->createTerm(['name' => 'First']); $second = $this->createTerm(['name' => 'Second', 'parent' => $first->id()]); $third = $this->createTerm(['name' => 'Third', 'parent' => $second->id()]); @@ -123,6 +122,8 @@ public function testTermWithDepthFilter() { * The term ID to filter on. * @param integer $depth * The depth to search. + * @param array $expected + * The expected views result. */ protected function assertTermWithDepthResult($tid, $depth, array $expected) { $this->view->destroy(); diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyTestBase.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyTestBase.php index 6677952..d4479f1 100644 --- a/core/modules/taxonomy/src/Tests/Views/TaxonomyTestBase.php +++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyTestBase.php @@ -124,7 +124,7 @@ protected function mockStandardInstall() { * @param array $settings * (Optional) An associative array of settings to pass to `entity_create`. * - * @return \Drupal\taxonomy\Term + * @return \Drupal\taxonomy\Entity\Term * The created taxonomy term. */ protected function createTerm(array $settings = []) {