', ob_get_clean() );
- }
-
- /**
- * Test genesis_custom_blocks_php_version_text().
- *
- * @covers \genesis_custom_blocks_php_version_text()
- */
- public function test_genesis_custom_blocks_php_version_text() {
- $this->assertContains( 'Genesis Custom Blocks plugin error:', genesis_custom_blocks_php_version_text() );
- }
-
- /**
- * Test genesis_custom_blocks_wp_version_error().
- *
- * @covers \genesis_custom_blocks_wp_version_error()
- */
- public function test_genesis_custom_blocks_wp_version_error() {
- ob_start();
- genesis_custom_blocks_wp_version_error();
-
- $this->assertEquals(
- '
Genesis Custom Blocks plugin error: Your version of WordPress is too old. You must be running WordPress 5.0 to use Genesis Custom Blocks.
',
- ob_get_clean()
- );
- }
-
- /**
- * Test genesis_custom_blocks_wp_version_text().
- *
- * @covers \genesis_custom_blocks_wp_version_text()
- */
- public function test_genesis_custom_blocks_wp_version_text() {
- $this->assertEquals(
- 'Genesis Custom Blocks plugin error: Your version of WordPress is too old. You must be running WordPress 5.0 to use Genesis Custom Blocks.',
- genesis_custom_blocks_wp_version_text()
- );
- }
/**
* Test genesis_custom_blocks().
diff --git a/tests/php/Unit/TestUtil.php b/tests/php/Unit/TestUtil.php
index c0ad87291..4e7125280 100644
--- a/tests/php/Unit/TestUtil.php
+++ b/tests/php/Unit/TestUtil.php
@@ -261,6 +261,6 @@ public function test_get_post_type_slug() {
public function test_get_url_from_path() {
$subdirectory_path = 'wp-content/theme/blocks/test-block-here.css';
$path = ABSPATH . $subdirectory_path;
- $this->assertEquals( '/' . $subdirectory_path, $this->instance->get_url_from_path( $path ) );
+ $this->assertContains( '/' . $subdirectory_path, $this->instance->get_url_from_path( $path ) );
}
}
diff --git a/webpack.config.js b/webpack.config.js
index 690603dc1..a68b432db 100755
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -9,7 +9,7 @@ const IgnoreEmitPlugin = require( 'ignore-emit-webpack-plugin' );
* WordPress dependencies
*/
const DependencyExtractionWebpackPlugin = require( '@wordpress/dependency-extraction-webpack-plugin' );
-const { defaultRequestToExternal, defaultRequestToHandle } = require( '@wordpress/dependency-extraction-webpack-plugin/util' );
+const { defaultRequestToExternal, defaultRequestToHandle } = require( '@wordpress/dependency-extraction-webpack-plugin/lib/util' );
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
const isProduction = process.env.NODE_ENV === 'production';