mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
Editor: Fix code style for constructor arguments added in [47875].
Also revert unintended changes to `WP_Block_Type::__construct()` DocBlock. See #48529. git-svn-id: https://develop.svn.wordpress.org/trunk@47876 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -837,15 +837,18 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
|
||||
unregister_block_type( $name );
|
||||
|
||||
$this->assertArrayHasKey( $name, $blocks );
|
||||
$this->assertEquals( array(
|
||||
'title' => '',
|
||||
'description' => '',
|
||||
'category' => 'common',
|
||||
'icon' => 'text',
|
||||
'keywords' => array(),
|
||||
'supports' => array(),
|
||||
'styles' => array(),
|
||||
), $blocks[ $name ] );
|
||||
$this->assertEquals(
|
||||
array(
|
||||
'title' => '',
|
||||
'description' => '',
|
||||
'category' => 'common',
|
||||
'icon' => 'text',
|
||||
'keywords' => array(),
|
||||
'supports' => array(),
|
||||
'styles' => array(),
|
||||
),
|
||||
$blocks[ $name ]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user