Changeset 51462 for trunk/tests/phpunit/tests/blocks/block-editor.php
- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/block-editor.php
r51370 r51462 436 436 437 437 $after = implode( '', wp_scripts()->registered['wp-api-fetch']->extra['after'] ); 438 $this->assert NotContains( 'wp.apiFetch.createPreloadingMiddleware', $after );438 $this->assertStringNotContainsString( 'wp.apiFetch.createPreloadingMiddleware', $after ); 439 439 } 440 440 … … 463 463 464 464 $after = implode( '', wp_scripts()->registered['wp-api-fetch']->extra['after'] ); 465 $this->assert NotContains( 'wp.apiFetch.createPreloadingMiddleware', $after );465 $this->assertStringNotContainsString( 'wp.apiFetch.createPreloadingMiddleware', $after ); 466 466 } 467 467 … … 490 490 491 491 $after = implode( '', wp_scripts()->registered['wp-api-fetch']->extra['after'] ); 492 $this->assert Contains( 'wp.apiFetch.createPreloadingMiddleware', $after );493 $this->assert Contains( '"\/wp\/v2\/blocks"', $after );494 $this->assert Contains( '"\/wp\/v2\/types"', $after );492 $this->assertStringContainsString( 'wp.apiFetch.createPreloadingMiddleware', $after ); 493 $this->assertStringContainsString( '"\/wp\/v2\/blocks"', $after ); 494 $this->assertStringContainsString( '"\/wp\/v2\/types"', $after ); 495 495 } 496 496
Note: See TracChangeset
for help on using the changeset viewer.