Changeset 56692 for trunk/tests/phpunit/tests/blocks/getBlockAssetUrl.php
- Timestamp:
- 09/26/2023 12:07:56 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/getBlockAssetUrl.php
r56683 r56692 64 64 65 65 $this->assertSame( get_template_directory_uri() . '/blocks/example-block/view.js', $url ); 66 67 66 } 68 67 … … 77 76 78 77 $this->assertSame( get_stylesheet_directory_uri() . '/blocks/example-block/view.js', $url ); 79 80 78 } 81 79 … … 90 88 $this->assertSame( plugins_url( 'view.js', $path ), $url, 'The return block asset url should match plugin url.' ); 91 89 $this->assertStringStartsWith( WP_PLUGIN_URL, $url, 'The return block asset url should contain the url that support with the mu plugin url.' ); 92 93 90 } 94 91 … … 113 110 $this->assertFalse( $url ); 114 111 } 115 116 112 }
Note: See TracChangeset
for help on using the changeset viewer.