diff --git a/web/modules/custom/my_module/src/Entity/Post.php b/web/modules/custom/my_module/src/Entity/Post.php new file mode 100644 index 0000000..9690518 --- /dev/null +++ b/web/modules/custom/my_module/src/Entity/Post.php @@ -0,0 +1,5 @@ +assertCount(1, $articles); $this->assertIsObject($articles[1]); - $this->assertInstanceOf(NodeInterface::class, $articles[1]); - $this->assertSame('article', $articles[1]->bundle()); - $this->assertSame('Test post', $articles[1]->label()); + $this->assertInstanceOf(Post::class, $articles[1]); + $this->assertSame('Test post', $articles[1]->getTitle()); } /** @test */