From df1d529e6e311795579c7c09f5bf5d11986cc222 Mon Sep 17 00:00:00 2001 From: Ahmed Saeed Date: Tue, 18 Jul 2023 15:27:22 +0300 Subject: [PATCH] fix integration tests 4 --- .../inc/ThirdParty/Themes/Uncode/excludeJs.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Integration/inc/ThirdParty/Themes/Uncode/excludeJs.php b/tests/Integration/inc/ThirdParty/Themes/Uncode/excludeJs.php index 3bab0e3698..97eeb65c16 100644 --- a/tests/Integration/inc/ThirdParty/Themes/Uncode/excludeJs.php +++ b/tests/Integration/inc/ThirdParty/Themes/Uncode/excludeJs.php @@ -67,9 +67,9 @@ public function set_stylesheet_root() { * @dataProvider providerTestData */ public function testShouldReturnExpected( $config, $expected ) { - $this->assertArraySubset( - $expected, - apply_filters( 'rocket_exclude_js', $config['exclusions'] ) - ); + $actual = apply_filters( 'rocket_exclude_js', $config['exclusions'] ); + foreach ( $expected as $item ) { + $this->assertContains( $item, $actual ); + } } }