Add tags test
InvalidArgumentException: Field field_tags is unknown.
This commit is contained in:
parent
ed7f02cc9e
commit
380d2c5cfe
1 changed files with 11 additions and 0 deletions
|
@ -37,4 +37,15 @@ final class PostBuilderTest extends EntityKernelTestBase {
|
||||||
self::assertFalse($node->isPublished());
|
self::assertFalse($node->isPublished());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @test */
|
||||||
|
public function it_returns_a_post_with_tags(): void {
|
||||||
|
$node = PostBuilder::create()
|
||||||
|
->setTitle('test')
|
||||||
|
->getPost();
|
||||||
|
|
||||||
|
self::assertInstanceOf(NodeInterface::class, $node);
|
||||||
|
self::assertSame('post', $node->bundle());
|
||||||
|
$node->get('field_tags');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue