- Timestamp:
- 11/09/2020 03:43:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-block-supports.php
r49545 r49547 124 124 $style_list = $this->get_attribute_from_block( 'style', $styled_block ); 125 125 126 $this->assert Equals( $expected_classes, $class_list );127 $this->assert Equals( $expected_styles, $style_list );126 $this->assertSame( $expected_classes, $class_list ); 127 $this->assertSame( $expected_styles, $style_list ); 128 128 } 129 129 … … 139 139 140 140 // Ensure blocks to not add extra whitespace. 141 $this->assert Equals( $styled_block, trim( $styled_block ) );141 $this->assertSame( $styled_block, trim( $styled_block ) ); 142 142 143 143 $content = $this->get_content_from_block( $styled_block ); … … 145 145 $style_list = $this->get_attribute_from_block( 'style', $styled_block ); 146 146 147 $this->assert Equals( self::BLOCK_CONTENT, $content );148 $this->assert EqualSets(147 $this->assertSame( self::BLOCK_CONTENT, $content ); 148 $this->assertSameSets( 149 149 explode( ' ', $expected_classes ), 150 150 explode( ' ', $class_list ) 151 151 ); 152 $this->assert Equals(152 $this->assertSame( 153 153 array_map( 'trim', explode( ';', $expected_styles ) ), 154 154 array_map( 'trim', explode( ';', $style_list ) )
Note: See TracChangeset
for help on using the changeset viewer.