Add more assertions to ensure that the correct page title is returned as
well as some text on the page.
This fails as the expected test is not returned.
Add the BlogPageController that is referenced within
`my_module.routing.yml`.
We will need to return a render array, but for now let’s return an empty
array.
The test now passes as we are getting the expected response code.
Enable the node module within the test to add the `access content`
permission.
This fails, and returns a 500 response code rather than the expected 200
response code.
Add a `my_module.routing.yml` file that adds the missing route for
`/blog`.
This fails, and returns a 403 response code rather than the expected 200
response code.
Add the new `BlogPageTest` functional test to ensure that anonymous
users can access the `/blog` page.
This fails, and returns a 404 response code rather than the expected 200
response code.
Replace the Symfony web server documentation with DDEV, and PHP's local
web server.
This should be one less new thing for people to learn and should be more
familiar to Drupal developers.
Fixes this error:
> Error: Class
> 'Symfony\Component\Config\Resource\ClassExistenceResource' not found
> in
> Symfony\Component\DependencyInjection\Compiler\AutowirePass->createTypeNotFoundMessage()
> Cannot autowire service "Drupal\simple_message\DisplaySimpleMessage":
argument "$messenger" of method "__construct()" references interface
"Drupal\Core\Messenger\MessengerInterface" but no such service exists.
You should maybe alias this interface to the existing "messenger"
service