Changeset 48937 for trunk/tests/phpunit/tests/blocks/block-list.php
- Timestamp:
- 09/02/2020 12:35:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/block-list.php
r48845 r48937 55 55 56 56 // Test "offsetGet". 57 $this->assert Equals( 'core/example', $blocks[0]->name );57 $this->assertSame( 'core/example', $blocks[0]->name ); 58 58 59 59 // Test "offsetSet". 60 60 $parsed_blocks[0]['blockName'] = 'core/updated'; 61 61 $blocks[0] = new WP_Block( $parsed_blocks[0], $context, $this->registry ); 62 $this->assert Equals( 'core/updated', $blocks[0]->name );62 $this->assertSame( 'core/updated', $blocks[0]->name ); 63 63 64 64 // Test "offsetUnset". … … 77 77 78 78 foreach ( $blocks as $block ) { 79 $this->assert Equals( 'core/example', $block->name );79 $this->assertSame( 'core/example', $block->name ); 80 80 $assertions++; 81 81 foreach ( $block->inner_blocks as $inner_block ) { 82 $this->assert Equals( 'core/example', $inner_block->name );82 $this->assertSame( 'core/example', $inner_block->name ); 83 83 $assertions++; 84 84 } … … 89 89 $key = $blocks->key(); 90 90 $block = $blocks->current(); 91 $this->assert Equals( 0, $key );91 $this->assertSame( 0, $key ); 92 92 $assertions++; 93 $this->assert Equals( 'core/example', $block->name );93 $this->assertSame( 'core/example', $block->name ); 94 94 $assertions++; 95 95 $blocks->next(); 96 96 } 97 97 98 $this->assert Equals( 4, $assertions );98 $this->assertSame( 4, $assertions ); 99 99 } 100 100 … … 107 107 $blocks = new WP_Block_List( $parsed_blocks, $context, $this->registry ); 108 108 109 $this->assert Equals( 1, count( $blocks ) );109 $this->assertSame( 1, count( $blocks ) ); 110 110 } 111 111
Note: See TracChangeset
for help on using the changeset viewer.