From 4ecb5b5f880e4e0e55e6cd347fc928599ffcd4da Mon Sep 17 00:00:00 2001 From: Dimitrios Pantazis Date: Wed, 5 Jun 2024 18:14:12 +0300 Subject: [PATCH] Renamed files to not conflict with previous tests --- tests/_data/css/{fake.min.css => fake1.css} | 0 tests/_data/{js/fake.min.js => css/fake1.min.css} | 0 tests/_data/js/fake1.js | 0 tests/_data/js/fake1.min.js | 0 tests/wpunit/AssetsTest.php | 6 +++--- 5 files changed, 3 insertions(+), 3 deletions(-) rename tests/_data/css/{fake.min.css => fake1.css} (100%) rename tests/_data/{js/fake.min.js => css/fake1.min.css} (100%) create mode 100644 tests/_data/js/fake1.js create mode 100644 tests/_data/js/fake1.min.js diff --git a/tests/_data/css/fake.min.css b/tests/_data/css/fake1.css similarity index 100% rename from tests/_data/css/fake.min.css rename to tests/_data/css/fake1.css diff --git a/tests/_data/js/fake.min.js b/tests/_data/css/fake1.min.css similarity index 100% rename from tests/_data/js/fake.min.js rename to tests/_data/css/fake1.min.css diff --git a/tests/_data/js/fake1.js b/tests/_data/js/fake1.js new file mode 100644 index 0000000..e69de29 diff --git a/tests/_data/js/fake1.min.js b/tests/_data/js/fake1.min.js new file mode 100644 index 0000000..e69de29 diff --git a/tests/wpunit/AssetsTest.php b/tests/wpunit/AssetsTest.php index 281fe3a..9c2d638 100644 --- a/tests/wpunit/AssetsTest.php +++ b/tests/wpunit/AssetsTest.php @@ -54,15 +54,15 @@ public function it_should_register_multiple_assets() { * @test */ public function it_should_locate_minified_versions_of_external_assets() { - Asset::add( 'fake-script', 'fake.js' )->register(); - Asset::add( 'fake-style', 'fake.css' )->register(); + Asset::add( 'fake1-script', 'fake1.js' )->register(); + Asset::add( 'fake1-style', 'fake1.css' )->register(); Asset::add( 'fake2-script', 'fake2.js' )->register(); Asset::add( 'fake2-style', 'fake2.css' )->register(); Asset::add( 'fake3-script', 'fake3.js' )->register(); Asset::add( 'fake3-style', 'fake3.css' )->register(); $slugs = [ - 'fake' => [ true, false ], + 'fake1' => [ true, false ], 'fake2' => [ false, false ], 'fake3' => [ true, true ] ];