- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/block-type-registry.php
r46586 r48937 107 107 108 108 $block_type = $this->registry->register( $name, $settings ); 109 $this->assert Equals( $name, $block_type->name );110 $this->assert Equals( $settings['icon'], $block_type->icon );111 $this->assert Equals( $block_type, $this->registry->get_registered( $name ) );109 $this->assertSame( $name, $block_type->name ); 110 $this->assertSame( $settings['icon'], $block_type->icon ); 111 $this->assertSame( $block_type, $this->registry->get_registered( $name ) ); 112 112 } 113 113 … … 168 168 $this->registry->register( $name, $settings ); 169 169 $block_type = $this->registry->unregister( $name ); 170 $this->assert Equals( $name, $block_type->name );171 $this->assert Equals( $settings['icon'], $block_type->icon );170 $this->assertSame( $name, $block_type->name ); 171 $this->assertSame( $settings['icon'], $block_type->icon ); 172 172 $this->assertFalse( $this->registry->is_registered( $name ) ); 173 173 }
Note: See TracChangeset
for help on using the changeset viewer.