X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Ftests%2Fsrc%2FFunctional%2FViews%2FTaxonomyFieldAllTermsTest.php;fp=web%2Fcore%2Fmodules%2Ftaxonomy%2Fsrc%2FTests%2FViews%2FTaxonomyFieldAllTermsTest.php;h=ce70c72cc6ee8db443f80c3ea2a7e0c73bd75be8;hp=41780412c32c4e91ef9277378511dc09933dde41;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldAllTermsTest.php b/web/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldAllTermsTest.php similarity index 86% rename from web/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldAllTermsTest.php rename to web/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldAllTermsTest.php index 41780412c..ce70c72cc 100644 --- a/web/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldAllTermsTest.php +++ b/web/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldAllTermsTest.php @@ -1,6 +1,6 @@ xpath('//a[@href="' . $this->term1->url() . '"]'); $this->assertEqual(count($actual), 2, 'Correct number of taxonomy term1 links'); - $this->assertEqual($actual[0]->__toString(), $this->term1->label()); - $this->assertEqual($actual[1]->__toString(), $this->term1->label()); + $this->assertEqual($actual[0]->getText(), $this->term1->label()); + $this->assertEqual($actual[1]->getText(), $this->term1->label()); $this->assertEscaped($this->term1->label()); $actual = $this->xpath('//a[@href="' . $this->term2->url() . '"]'); $this->assertEqual(count($actual), 2, 'Correct number of taxonomy term2 links'); - $this->assertEqual($actual[0]->__toString(), $this->term2->label()); - $this->assertEqual($actual[1]->__toString(), $this->term2->label()); + $this->assertEqual($actual[0]->getText(), $this->term2->label()); + $this->assertEqual($actual[1]->getText(), $this->term2->label()); } /**