Skip to content

Commit 7e4363d

Browse files
committed
fix wrong content specifying within spec tests
1 parent 4d024d8 commit 7e4363d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec/ContentView/FieldDefinitionIdentifierMatcherSpec.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ private function buildView(int $contentTypeId): ContentView
7272
$view->setContent(
7373
new Content([
7474
'versionInfo' => new VersionInfo([
75-
'contentInfo' => new ContentInfo(['contentTypeId' => $contentTypeId]),
75+
'contentInfo' => new ContentInfo([
76+
'contentTypeId' => $contentTypeId,
77+
'contentType' => new ContentType([
78+
'id' => $contentTypeId,
79+
'identifier' => 'foo_content_type',
80+
]),
81+
]),
7682
]),
7783
])
7884
);

0 commit comments

Comments
 (0)