mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Coding Standards: Fix a few newly introduced WPCS issues.
Follow-up to [56683], [56689]. See #59161, #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56692 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a099b9a19f
commit
0444cf5337
@ -63,7 +63,6 @@ class Tests_Get_Block_Asset_Url extends WP_UnitTestCase {
|
||||
$url = get_block_asset_url( $path );
|
||||
|
||||
$this->assertSame( get_template_directory_uri() . '/blocks/example-block/view.js', $url );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -76,7 +75,6 @@ class Tests_Get_Block_Asset_Url extends WP_UnitTestCase {
|
||||
$url = get_block_asset_url( $path );
|
||||
|
||||
$this->assertSame( get_stylesheet_directory_uri() . '/blocks/example-block/view.js', $url );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -89,7 +87,6 @@ class Tests_Get_Block_Asset_Url extends WP_UnitTestCase {
|
||||
$this->assertStringNotContainsString( WP_PLUGIN_DIR, $url, 'The return block asset url should not contain plugin path.' );
|
||||
$this->assertSame( plugins_url( 'view.js', $path ), $url, 'The return block asset url should match plugin url.' );
|
||||
$this->assertStringStartsWith( WP_PLUGIN_URL, $url, 'The return block asset url should contain the url that support with the mu plugin url.' );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -112,5 +109,4 @@ class Tests_Get_Block_Asset_Url extends WP_UnitTestCase {
|
||||
|
||||
$this->assertFalse( $url );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -72,5 +72,4 @@ class Tests_Filesystem_UnzipFilePclzip extends WP_UnitTestCase {
|
||||
|
||||
$this->assertSame( 1, $filter->get_call_count() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -80,5 +80,4 @@ class Tests_Filesystem_UnzipFileZiparchive extends WP_UnitTestCase {
|
||||
|
||||
$this->assertSame( 1, $filter->get_call_count() );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user