Skip to content

Commit

Permalink
Update example to use variations.php file
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jun 6, 2024
1 parent 4d9f935 commit 794876d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 1 addition & 8 deletions tests/phpunit/data/blocks/notice/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,7 @@
"label": "Other"
}
],
"variations": [
{
"name": "error",
"title": "Error",
"description": "Shows error.",
"keywords": [ "failure" ]
}
],
"variations": "variations.php",
"example": {
"attributes": {
"message": "This is a notice!"
Expand Down
10 changes: 10 additions & 0 deletions tests/phpunit/data/blocks/notice/variations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return array(
array(
'name' => 'error',
'title' => 'Error',
'description' => 'Shows error.',
'keywords' => array( 'failure' )
)
);

0 comments on commit 794876d

Please sign in to comment.