Re-add syntax highlighting to daily emails and

...ATDC lessons
This commit is contained in:
Oliver Davies 2024-02-18 01:35:59 +00:00
parent 0d9bb37503
commit 5fbf48d9ac
48 changed files with 186 additions and 165 deletions

View file

@ -41,7 +41,7 @@ Before adding tests, you must create a module to place them in.
Run `mkdir -p web/modules/custom/atdc` to create an empty module directory, and create an `atdc.info.yml` file within it with this content:
```yaml
```language-yaml
name: Example
type: module
core_version_requirement: ^10
@ -58,7 +58,7 @@ Run `mkdir -p web/modules/custom/atdc/tests/src/Functional && touch web/modules/
Then, add this content.
```php
```language-php
<?php
namespace Drupal\Tests\atdc\Functional;
@ -77,7 +77,7 @@ Note: within a test class, the namespace is `Drupal\Tests\{module_name}` instead
With the boilerplate class added, create a test method within it:
```php
```language-php
public function testBasic(): void {
  self::assertTrue(FALSE);
}
@ -148,7 +148,7 @@ As you're writing functional tests by extending `BrowserTestBase`, you can make
Replace the `testBasic` test method with the following:
```php
```language-php
public function testFrontPage(): void {
$this->drupalGet('/');