Skip to content

Commit

Permalink
temp : fix failing layout and textAlign attributes test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ta5r committed Sep 24, 2024
1 parent 6ea65b8 commit 1a219d7
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion tests/unit/CoreQuoteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,54 @@ public function test_retrieve_core_quote_errorneous_attributes(): void {
]
);

$query = $this->query();
$query = '
fragment CoreQuoteBlockFragment on CoreQuote {
innerBlocks {
... on CoreParagraph{
attributes {
content
}
}
}
attributes {
anchor
backgroundColor
citation
className
cssClassName
fontFamily
fontSize
gradient
layout
lock
# metadata
style
textAlign
textColor
value
}
}
query Post( $id: ID! ) {
post(id: $id, idType: DATABASE_ID) {
databaseId
editorBlocks {
apiVersion
blockEditorCategoryName
clientId
cssClassNames
innerBlocks {
name
}
isDynamic
name
parentClientId
renderedHtml
...CoreQuoteBlockFragment
}
}
}
';
$variables = [
'id' => $this->post_id,
];
Expand Down

0 comments on commit 1a219d7

Please sign in to comment.