Changeset 48937 for trunk/tests/phpunit/tests/blocks/register.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/register.php
r48263 r48937 293 293 $this->assertSame( 'Shows warning, error or success notices…', $result->description ); 294 294 $this->assertEqualSets( array( 'alert', 'message' ), $result->keywords ); 295 $this->assert Equals(295 $this->assertSame( 296 296 array( 297 297 'message' => array( … … 303 303 $result->attributes 304 304 ); 305 $this->assert Equals(305 $this->assertSame( 306 306 array( 307 307 'my-plugin/message' => 'message', … … 310 310 ); 311 311 $this->assertEqualSets( array( 'groupId' ), $result->uses_context ); 312 $this->assert Equals(312 $this->assertSame( 313 313 array( 314 314 'align' => true, … … 317 317 $result->supports 318 318 ); 319 $this->assert Equals(319 $this->assertSame( 320 320 array( 321 321 array( … … 331 331 $result->styles 332 332 ); 333 $this->assert Equals(333 $this->assertSame( 334 334 array( 335 335 'attributes' => array( … … 397 397 $registry = WP_Block_Type_Registry::get_instance(); 398 398 $block_type = $registry->get_registered( 'core/test-filtered' ); 399 $this->assert Equals( 'boolean', $block_type->attributes['core/test-filtered']['type'] );399 $this->assertSame( 'boolean', $block_type->attributes['core/test-filtered']['type'] ); 400 400 } 401 401 }
Note: See TracChangeset
for help on using the changeset viewer.