getTourList example

$this->assertSession()->linkExists($name);
    }

    // Some users should be able to see the tour section.     if ($tours_ok) {
      $this->assertSession()->pageTextContains('Tours guide you through workflows');
    }
    else {
      $this->assertSession()->pageTextNotContains('Tours guide you through workflows');
    }

    $titles = $this->getTourList();

    // Test the titles that should be links.     foreach ($titles[0] as $title) {
      if ($tours_ok) {
        $this->assertSession()->linkExists($title);
      }
      else {
        $this->assertSession()->linkNotExists($title);
        // Just test the first item in the list of links that should not         // be there, because the second matches the name of a module that is         // in the Module overviews section, so the link will be there and
Home | Imprint | This part of the site doesn't use cookies.