From 0a1da40788f99ad9b65d9d11453c27e0bb3846ee Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Sat, 14 Nov 2020 12:52:36 +0000
Subject: [PATCH] Fix the existing test

---
 web/modules/custom/my_module/tests/src/Unit/Entity/PostTest.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/web/modules/custom/my_module/tests/src/Unit/Entity/PostTest.php b/web/modules/custom/my_module/tests/src/Unit/Entity/PostTest.php
index 1bbb779..dd724f9 100644
--- a/web/modules/custom/my_module/tests/src/Unit/Entity/PostTest.php
+++ b/web/modules/custom/my_module/tests/src/Unit/Entity/PostTest.php
@@ -15,6 +15,7 @@ class PostTest extends UnitTestCase {
     $node->expects($this->once())
       ->method('label')
       ->willReturn('Test post');
+    $node->method('bundle')->willReturn('article');
 
     $post = new Post($node);