From 1a219d7737d75cabc7eeb348a1b28b74fdc01658 Mon Sep 17 00:00:00 2001 From: Ta5r Date: Tue, 24 Sep 2024 19:06:19 +0530 Subject: [PATCH] temp : fix failing layout and textAlign attributes test --- tests/unit/CoreQuoteTest.php | 49 +++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/tests/unit/CoreQuoteTest.php b/tests/unit/CoreQuoteTest.php index b78ee45e..d04c46ad 100644 --- a/tests/unit/CoreQuoteTest.php +++ b/tests/unit/CoreQuoteTest.php @@ -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, ];