Skip to content

Commit

Permalink
horizontal align
Browse files Browse the repository at this point in the history
  • Loading branch information
mreishus committed Sep 6, 2024
1 parent 22a2420 commit c60583c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions tests/phpunit/tests/blocks/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -1512,10 +1512,10 @@ public function test_register_block_hooks_targeting_itself() {
*/
public function test_register_block_type_from_registry_metadata() {
$metadata = array(
'name' => 'test/block-from-registry',
'title' => 'Test Block From Registry',
'category' => 'widgets',
'icon' => 'smiley',
'name' => 'test/block-from-registry',
'title' => 'Test Block From Registry',
'category' => 'widgets',
'icon' => 'smiley',
'description' => 'This is a test block.',
);

Expand All @@ -1538,13 +1538,13 @@ public function test_register_block_type_from_registry_metadata() {
* @covers ::register_block_type_from_metadata
*/
public function test_register_block_type_from_json_file() {
$temp_dir = get_temp_dir();
$temp_dir = get_temp_dir();
$block_json = $temp_dir . 'block.json';
file_put_contents(
$block_json,
json_encode(
array(
'name' => 'test/json-block',
'name' => 'test/json-block',
'title' => 'Test JSON Block',
)
)
Expand Down
6 changes: 3 additions & 3 deletions tests/phpunit/tests/blocks/wpBlockMetadataRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public function set_up() {

public function test_register_and_get_metadata() {
$namespace = 'test-namespace';
$source = 'test-source';
$metadata = array(
'name' => 'test-block',
$source = 'test-source';
$metadata = array(
'name' => 'test-block',
'title' => 'Test Block',
);

Expand Down

0 comments on commit c60583c

Please sign in to comment.