function SimpleTestTest::getResultFieldSet

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

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

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php, line 302
Definition of Drupal\simpletest\Tests\SimpleTestTest.

Class

SimpleTestTest

Namespace

Drupal\simpletest\Tests

Code

function getResultFieldSet() {
  $all_details = $this
    ->xpath('//details');
  $info = $this
    ->getInfo();
  foreach ($all_details as $details) {
    if ($this
      ->asText($details->summary) == $info['name']) {
      return $details;
    }
  }
  return FALSE;
}