assertEquals( $expected_value, $final_file_name, 'the anticipated js file name should use .min when SCRIPT_DEBUG is off, and have no .min when SCRIPT_DEBUG is on.' ); } /** * Tests for should_use_minified_js_file */ public function test_should_use_minified_js_file() { // We will simulate a call with SCRIPT_DEBUG on. $script_debug = true; $this->assertFalse( WCAdminAssets::should_use_minified_js_file( $script_debug ), 'Since unminifed js feature is TRUE/on, and script_debug is true, should_use_minified_js_file should return false' ); // Now we will simulate SCRIPT_DEBUG off/false. $script_debug = false; $this->assertTrue( WCAdminAssets::should_use_minified_js_file( $script_debug ), 'Since unminifed js feature is TRUE/on, and script_debug is false, should_use_minified_js_file should return true' ); } }