Skip to content

Commit

Permalink
Coding Standards: Fix a few newly introduced WPCS issues.
Browse files Browse the repository at this point in the history
Follow-up to [56683], [56689].

See #59161, #58831.

git-svn-id: https://develop.svn.wordpress.org/trunk@56692 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Sep 26, 2023
1 parent a099b9a commit 0444cf5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions tests/phpunit/tests/blocks/getBlockAssetUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public function test_parent_theme() {
$url = get_block_asset_url( $path );

$this->assertSame( get_template_directory_uri() . '/blocks/example-block/view.js', $url );

}

/**
Expand All @@ -76,7 +75,6 @@ public function test_child_theme() {
$url = get_block_asset_url( $path );

$this->assertSame( get_stylesheet_directory_uri() . '/blocks/example-block/view.js', $url );

}

/**
Expand All @@ -89,7 +87,6 @@ public function test_plugin() {
$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.' );

}

/**
Expand All @@ -112,5 +109,4 @@ public function test_empty() {

$this->assertFalse( $url );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/filesystem/_unzipFilePclzip.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,4 @@ public function test_should_apply_unzip_file_filters() {

$this->assertSame( 1, $filter->get_call_count() );
}

}
1 change: 0 additions & 1 deletion tests/phpunit/tests/filesystem/_unzipFileZiparchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@ public function test_should_apply_unzip_file_filters() {

$this->assertSame( 1, $filter->get_call_count() );
}

}

0 comments on commit 0444cf5

Please sign in to comment.