From 0444cf53376ba47fc5f41cbb4efd855cd924671e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 26 Sep 2023 00:07:56 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/blocks/getBlockAssetUrl.php | 4 ---- tests/phpunit/tests/filesystem/_unzipFilePclzip.php | 1 - tests/phpunit/tests/filesystem/_unzipFileZiparchive.php | 1 - 3 files changed, 6 deletions(-) diff --git a/tests/phpunit/tests/blocks/getBlockAssetUrl.php b/tests/phpunit/tests/blocks/getBlockAssetUrl.php index ca4c0e25df..ee1c541cf0 100644 --- a/tests/phpunit/tests/blocks/getBlockAssetUrl.php +++ b/tests/phpunit/tests/blocks/getBlockAssetUrl.php @@ -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 ); } - } diff --git a/tests/phpunit/tests/filesystem/_unzipFilePclzip.php b/tests/phpunit/tests/filesystem/_unzipFilePclzip.php index 4e8cfe6a6f..c3098c6a86 100644 --- a/tests/phpunit/tests/filesystem/_unzipFilePclzip.php +++ b/tests/phpunit/tests/filesystem/_unzipFilePclzip.php @@ -72,5 +72,4 @@ class Tests_Filesystem_UnzipFilePclzip extends WP_UnitTestCase { $this->assertSame( 1, $filter->get_call_count() ); } - } diff --git a/tests/phpunit/tests/filesystem/_unzipFileZiparchive.php b/tests/phpunit/tests/filesystem/_unzipFileZiparchive.php index 61fde0fdd3..a9d385d339 100644 --- a/tests/phpunit/tests/filesystem/_unzipFileZiparchive.php +++ b/tests/phpunit/tests/filesystem/_unzipFileZiparchive.php @@ -80,5 +80,4 @@ class Tests_Filesystem_UnzipFileZiparchive extends WP_UnitTestCase { $this->assertSame( 1, $filter->get_call_count() ); } - }