X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fblock_content%2Ftests%2Fsrc%2FFunctional%2FBlockContentListTest.php;fp=web%2Fcore%2Fmodules%2Fblock_content%2Fsrc%2FTests%2FBlockContentListTest.php;h=aba60c366c629158b87840b6596aea7b1e72efd5;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hp=e00706e9ff5028b853c7c077b1f3f03df784c56e;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a;p=yaffs-website diff --git a/web/core/modules/block_content/src/Tests/BlockContentListTest.php b/web/core/modules/block_content/tests/src/Functional/BlockContentListTest.php similarity index 95% rename from web/core/modules/block_content/src/Tests/BlockContentListTest.php rename to web/core/modules/block_content/tests/src/Functional/BlockContentListTest.php index e00706e9f..aba60c366 100644 --- a/web/core/modules/block_content/src/Tests/BlockContentListTest.php +++ b/web/core/modules/block_content/tests/src/Functional/BlockContentListTest.php @@ -1,6 +1,6 @@ $element) { - $this->assertEqual($element[0], $expected_items[$key]); + $this->assertEqual($element->getText(), $expected_items[$key]); } $label = 'Antelope'; @@ -66,7 +66,7 @@ class BlockContentListTest extends BlockContentTestBase { // Check the contents of each row cell. The first cell contains the label, // the second contains the machine name, and the third contains the // operations list. - $this->assertIdentical((string) $elements[0], $label); + $this->assertIdentical($elements[0]->getText(), $label); // Edit the entity using the operations link. $blocks = $this->container