Skip to content

Commit

Permalink
chore : fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ta5r committed Sep 25, 2024
1 parent 9505f88 commit 15022f6
Showing 1 changed file with 32 additions and 11 deletions.
43 changes: 32 additions & 11 deletions tests/unit/CoreImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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',
Expand All @@ -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']
Expand Down

0 comments on commit 15022f6

Please sign in to comment.