5d: Ensure the label will return the title

This commit is contained in:
Oliver Davies 2020-11-14 10:04:45 +00:00
parent bd68420fc1
commit 8f8218260b

View file

@ -12,6 +12,10 @@ class PostTest extends UnitTestCase {
public function it_returns_the_title() {
$node = $this->createMock(NodeInterface::class);
$node->expects($this->once())
->method('label')
->willReturn('Test post');
$post = new Post($node);
$this->assertSame('Test post', $post->getTitle());