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:
Sergey Biryukov 2023-09-26 00:07:56 +00:00
parent a099b9a19f
commit 0444cf5337
3 changed files with 0 additions and 6 deletions

View File

@ -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 );
}
}

View File

@ -72,5 +72,4 @@ class Tests_Filesystem_UnzipFilePclzip extends WP_UnitTestCase {
$this->assertSame( 1, $filter->get_call_count() );
}
}

View File

@ -80,5 +80,4 @@ class Tests_Filesystem_UnzipFileZiparchive extends WP_UnitTestCase {
$this->assertSame( 1, $filter->get_call_count() );
}
}