function SimpleTestTest::getResultFieldSet

Get the details containing the results for group this test is in.

1 call to SimpleTestTest::getResultFieldSet()
SimpleTestTest::getTestResults in core/modules/simpletest/src/Tests/SimpleTestTest.php
Get the results from a test and store them in the class array $results.

File

core/modules/simpletest/src/Tests/SimpleTestTest.php, line 353

Class

SimpleTestTest
Tests SimpleTest's web interface: check that the intended tests were run and ensure that test reports display the intended results. Also test SimpleTest's internal browser and APIs implicitly.

Namespace

Drupal\simpletest\Tests

Code

public function getResultFieldSet() {
    $all_details = $this->xpath('//details');
    foreach ($all_details as $details) {
        if ($this->asText($details->summary) == __CLASS__) {
            return $details;
        }
    }
    return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.