From 1fe7119b5dd9cc6132e2f5c558194a1e3ff0aff2 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 14 Nov 2020 09:59:31 +0000 Subject: [PATCH] 5b: Add getTitle() method > Failed asserting that two strings are identical --- web/modules/custom/my_module/src/Entity/Post.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/modules/custom/my_module/src/Entity/Post.php b/web/modules/custom/my_module/src/Entity/Post.php index 9690518..315c676 100644 --- a/web/modules/custom/my_module/src/Entity/Post.php +++ b/web/modules/custom/my_module/src/Entity/Post.php @@ -2,4 +2,10 @@ namespace Drupal\my_module\Entity; -class Post {} +class Post { + + public function getTitle(): string { + return ''; + } + +}