Make WordPress Core


Ignore:
Timestamp:
06/01/2020 04:25:18 PM (4 years ago)
Author:
ocean90
Message:

Editor: Fix code style for constructor arguments added in [47875].

Also revert unintended changes to WP_Block_Type::__construct() DocBlock.

See #48529.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/block-type.php

    r47875 r47876  
    354354     */
    355355    public function test_register_block() {
    356         $block_type = new WP_Block_Type( 'core/fake', array(
    357             'title'       => 'Test title',
    358             'category'    => 'Test category',
    359             'parent'      => array( 'core/third-party' ),
    360             'icon'        => 'icon.png',
    361             'description' => 'test description',
    362             'keywords'    => array( 'test keyword' ),
    363             'textdomain'  => 'test_domain',
    364             'supports'    => array( 'alignment' => true ),
    365         ) );
     356        $block_type = new WP_Block_Type(
     357            'core/fake',
     358            array(
     359                'title'       => 'Test title',
     360                'category'    => 'Test category',
     361                'parent'      => array( 'core/third-party' ),
     362                'icon'        => 'icon.png',
     363                'description' => 'test description',
     364                'keywords'    => array( 'test keyword' ),
     365                'textdomain'  => 'test_domain',
     366                'supports'    => array( 'alignment' => true ),
     367            )
     368        );
    366369
    367370        $this->assertSame( 'Test title', $block_type->title );
Note: See TracChangeset for help on using the changeset viewer.