class GraphTest

Unit tests for the graph handling features.

@group Graph

Hierarchy

  • class \Drupal\Tests\UnitTestCase extends \Drupal\Tests\PHPUnit_Framework_TestCase
    • class \Drupal\Tests\Component\Graph\GraphTest

Expanded class hierarchy of GraphTest

See also

Drupal\Component\Graph\Graph

File

drupal/core/tests/Drupal/Tests/Component/Graph/GraphTest.php, line 19
Contains \Drupal\Tests\Component\Graph\GraphTest.

Namespace

Drupal\Tests\Component\Graph
View source

Members

Namesort descending Modifiers Type Description Overrides
GraphTest::assertComponents protected function Verify expected components in a graph.
GraphTest::assertPaths protected function Verify expected paths in a graph.
GraphTest::assertReversePaths protected function Verify expected reverse paths in a graph.
GraphTest::assertWeights protected function Verify expected order in a graph.
GraphTest::displayArray protected function Helper function to output vertices as comma-separated list.
GraphTest::getInfo public static function This method exists to support the simpletest UI runner. Overrides UnitTestCase::getInfo
GraphTest::normalizeGraph protected function Normalizes a graph.
GraphTest::testDepthFirstSearch public function Test depth-first-search features.
UnitTestCase::getConfigFactoryStub public function Returns a stub config factory that behaves according to the passed in array.
UnitTestCase::getConfigStorageStub public function Returns a stub config storage that returns the supplied configuration.
UnitTestCase::randomName public static function Generates a random string containing letters and numbers.