You are here

function SimpleTestTest::getResultFieldSet in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/Tests/SimpleTestTest.php \Drupal\simpletest\Tests\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 348
Contains \Drupal\simpletest\Tests\SimpleTestTest.

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

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