From c3b71960f534c629319d115fd871496b6d55826e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 28 Aug 2020 18:55:52 +0100 Subject: [PATCH] Add example module with a deprecation --- web/modules/custom/example/example.info.yml | 7 ++++++ web/modules/custom/example/example.module | 17 +++++++++++++ .../src/Functional/DisplayMessageTest.php | 24 +++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 web/modules/custom/example/example.info.yml create mode 100644 web/modules/custom/example/example.module create mode 100644 web/modules/custom/example/tests/src/Functional/DisplayMessageTest.php diff --git a/web/modules/custom/example/example.info.yml b/web/modules/custom/example/example.info.yml new file mode 100644 index 0000000..08d01fc --- /dev/null +++ b/web/modules/custom/example/example.info.yml @@ -0,0 +1,7 @@ +name: Example module +description: An example module. +type: module +core_version_requirement: ^8 || ^9 +dependencies: + - drupal:filter + - drupal:node diff --git a/web/modules/custom/example/example.module b/web/modules/custom/example/example.module new file mode 100644 index 0000000..3df483d --- /dev/null +++ b/web/modules/custom/example/example.module @@ -0,0 +1,17 @@ +drupalCreateContentType(['type' => 'page']); + + $this->drupalCreateNode(); + + $this->drupalGet('node/1'); + + $this->assertText('This is a node.'); + } + +}