Add tag count assertion
> Failed asserting that actual size 0 matches expected size 3.
This commit is contained in:
parent
a6d9e9a524
commit
22d61485fd
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ final class PostBuilderTest extends EntityKernelTestBase {
|
||||||
|
|
||||||
self::assertInstanceOf(NodeInterface::class, $node);
|
self::assertInstanceOf(NodeInterface::class, $node);
|
||||||
self::assertSame('post', $node->bundle());
|
self::assertSame('post', $node->bundle());
|
||||||
$node->get('field_tags');
|
|
||||||
|
$tags = $node->get('field_tags')->referencedEntities();
|
||||||
|
self::assertCount(3, $tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue