Add tags to the post with PostBuilder
> Error: Call to undefined method Drupal\example\Builder\PostBuilder::setTags()
This commit is contained in:
parent
22d61485fd
commit
19f6f0287a
|
@ -52,6 +52,7 @@ final class PostBuilderTest extends EntityKernelTestBase {
|
||||||
|
|
||||||
$node = PostBuilder::create()
|
$node = PostBuilder::create()
|
||||||
->setTitle('test')
|
->setTitle('test')
|
||||||
|
->setTags(['Drupal', 'PHP', 'Testing'])
|
||||||
->getPost();
|
->getPost();
|
||||||
|
|
||||||
self::assertInstanceOf(NodeInterface::class, $node);
|
self::assertInstanceOf(NodeInterface::class, $node);
|
||||||
|
|
Loading…
Reference in a new issue