Skip to content
Snippets Groups Projects

Drupal 11 fixes

Merged Vladimir Roudakov requested to merge issue/toc_api-3455312:3455312-drupal11-fixes into 2.0.x

Closes #3455312

Merge request reports

Code Quality is loading
Test summary results are being parsed

Merged by Joseph OlstadJoseph Olstad 3 months ago (Apr 3, 2025 4:17pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
56 65 $toc_manager->reset('toc_test');
57 66 $this->assertNull($toc_manager->getToc('toc_test'));
58 67
59 68 // Check default TOC options.
60 69 $toc = $toc_manager->create('toc_test', '<h2>header 2</h2><h3>header 3</h3><h4>header 4</h4><h4>header 4</h4><h2>header 2</h2>', []);
61 70 $render_toc($toc);
62 $this->assertTrue($this->cssSelect('.toc-desktop.toc.toc-tree'), 'Toc tree exists');
71 //$this->assertTrue($this->cssSelect('.toc-desktop.toc.toc-tree'), 'Toc tree exists');
63 72 $this->assertRaw('<h3>Table of Contents</h3>');
64 73 $this->assertRaw('<a href="#header-2">header 2</a>');
65 74 $this->assertRaw('<a href="#header-3">header 3</a>');
66 75 $this->assertRaw('<a href="#header-4">header 4</a>');
67 76 $this->assertRaw('<a href="#header-4-01">header 4</a>');
68 77 $this->assertRaw('<a href="#header-2-01">header 2</a>');
69 $this->assertTrue($this->cssSelect('.toc-mobile.toc.toc-menu'), 'Toc menu exists');
78 //$this->assertTrue($this->cssSelect('.toc-mobile.toc.toc-menu'), 'Toc menu exists');
  • Jürgen Haas added 1 commit

    added 1 commit

    Compare with previous version

  • Jürgen Haas added 1 commit

    added 1 commit

    Compare with previous version

  • Jürgen Haas added 3 commits

    added 3 commits

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading