Skip to content

[docs] Update route_testcase namespace#1604

Open
andrewnicols wants to merge 1 commit into
moodle:mainfrom
andrewnicols:route_testcase
Open

[docs] Update route_testcase namespace#1604
andrewnicols wants to merge 1 commit into
moodle:mainfrom
andrewnicols:route_testcase

Conversation

@andrewnicols
Copy link
Copy Markdown
Member

Pinging @jrchamp

Copilot AI review requested due to automatic review settings June 2, 2026 02:35
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 2, 2026

Deploy Preview for moodledevdocs ready!

Name Link
🔨 Latest commit ce5f253
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/6a1e4175acb807000870ab3d
😎 Deploy Preview https://deploy-preview-1604--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the routing subsystem testing documentation to reference the fully-qualified \core\tests\router\route_testcase class name, keeping examples aligned with the current PHPUnit base testcase namespace across supported documentation versions.

Changes:

  • Replaced references to \route_testcase with \core\tests\router\route_testcase in headings, prose, and PHP snippets.
  • Updated method references (e.g., ::get_router(), ::create_request(), ::process_request()) to use the new fully-qualified class name across versioned docs.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
docs/apis/subsystems/routing/testing.md Updates the “next/current” docs to use the new \core\tests\router\route_testcase namespace in text and examples.
versioned_docs/version-5.2/apis/subsystems/routing/testing.md Same namespace update for 5.2 docs.
versioned_docs/version-5.1/apis/subsystems/routing/testing.md Same namespace update for 5.1 docs.
versioned_docs/version-5.0/apis/subsystems/routing/testing.md Same namespace update for 5.0 docs.
versioned_docs/version-4.5/apis/subsystems/routing/testing.md Same namespace update for 4.5 docs.

### Using the app to handle a request {/* #using-the-app-to-handle-a-request */}

The `\route_testcase` also includes several methods to simplify generating a Request object, and having routing it within the Router.
The `\core\tests\router\route_testcase` also includes several methods to simplify generating a Request object, and having routing it within the Router.
### Using the app to handle a request {/* #using-the-app-to-handle-a-request */}

The `\route_testcase` also includes several methods to simplify generating a Request object, and having routing it within the Router.
The `\core\tests\router\route_testcase` also includes several methods to simplify generating a Request object, and having routing it within the Router.
### Using the app to handle a request {/* #using-the-app-to-handle-a-request */}

The `\route_testcase` also includes several methods to simplify generating a Request object, and having routing it within the Router.
The `\core\tests\router\route_testcase` also includes several methods to simplify generating a Request object, and having routing it within the Router.
### Using the app to handle a request {/* #using-the-app-to-handle-a-request */}

The `\route_testcase` also includes several methods to simplify generating a Request object, and having routing it within the Router.
The `\core\tests\router\route_testcase` also includes several methods to simplify generating a Request object, and having routing it within the Router.
### Using the app to handle a request {/* #using-the-app-to-handle-a-request */}

The `\route_testcase` also includes several methods to simplify generating a Request object, and having routing it within the Router.
The `\core\tests\router\route_testcase` also includes several methods to simplify generating a Request object, and having routing it within the Router.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants