diff --git a/tests/unit/CoreImageTest.php b/tests/unit/CoreImageTest.php index 4ba52f42..d15eb420 100644 --- a/tests/unit/CoreImageTest.php +++ b/tests/unit/CoreImageTest.php @@ -3,8 +3,25 @@ namespace WPGraphQL\ContentBlocks\Unit; final class CoreImageTest extends PluginTestCase { + /** + * The instance of the plugin. + * + * @var \WPGraphQL\ContentBlocks\Plugin + */ public $instance; + + /** + * The ID of the post created for the test. + * + * @var int + */ public $post_id; + + /** + * The ID of the attachment created for the test. + * + * @var int + */ public $attachment_id; public function setUp(): void { @@ -136,11 +153,13 @@ className 'alt' => 'alt-text', 'id' => $this->attachment_id, 'src' => 'http://mysite.local/wp-content/uploads/2023/05/online-programming-course-hero-section-bg.svg', - 'style' => wp_json_encode([ - 'color' => [ - 'duotone' => 'var:preset|duotone|purple-green', - ], - ]), + 'style' => wp_json_encode( + [ + 'color' => [ + 'duotone' => 'var:preset|duotone|purple-green', + ], + ] + ), 'sizeSlug' => 'full', 'linkClass' => 'test-link-css-class', 'linkTarget' => '_blank', @@ -152,14 +171,16 @@ className 'url' => 'http://mysite.local/wp-content/uploads/2023/05/online-programming-course-hero-section-bg.svg', 'borderColor' => 'vivid-red', 'title' => 'test-title', - 'lock' => wp_json_encode([ - 'move' => true, - 'remove' => true, - ]), + 'lock' => wp_json_encode( + [ + 'move' => true, + 'remove' => true, + ] + ), 'anchor' => 'test-anchor', - 'rel' => 'https://www.youtube.com/ noreferrer noopener', - 'href' => 'http://decoupled.local/dcf-1-0/', + 'rel' => 'https://www.youtube.com/ noreferrer noopener', + 'href' => 'http://decoupled.local/dcf-1-0/', ], $node['editorBlocks'][0]['attributes']