| @@ 165-182 (lines=18) @@ | ||
| 162 | /** |
|
| 163 | * Possible values for test_get_file_url_for_environment. |
|
| 164 | */ |
|
| 165 | public function get_file_url_for_environment_data_provider() { |
|
| 166 | return array( |
|
| 167 | 'script-debug-true' => array( |
|
| 168 | '_inc/build/shortcodes/js/recipes.js', |
|
| 169 | 'modules/shortcodes/js/recipes.js', |
|
| 170 | true, |
|
| 171 | 'non_min_path', |
|
| 172 | 'min_path', |
|
| 173 | ), |
|
| 174 | 'script-debug-false' => array( |
|
| 175 | '_inc/build/shortcodes/js/recipes.js', |
|
| 176 | 'modules/shortcodes/js/recipes.js', |
|
| 177 | false, |
|
| 178 | 'min_path', |
|
| 179 | 'non_min_path', |
|
| 180 | ), |
|
| 181 | ); |
|
| 182 | } |
|
| 183 | ||
| 184 | /** |
|
| 185 | * Possible values for test_get_file_url_for_environment. |
|
| @@ 716-733 (lines=18) @@ | ||
| 713 | $this->assertNotContains( $$not_expected, $file_url ); |
|
| 714 | } |
|
| 715 | ||
| 716 | function get_file_url_for_environment_data_provider() { |
|
| 717 | return array( |
|
| 718 | 'script-debug-true' => array( |
|
| 719 | '_inc/build/shortcodes/js/recipes.js', |
|
| 720 | 'modules/shortcodes/js/recipes.js', |
|
| 721 | true, |
|
| 722 | 'non_min_path', |
|
| 723 | 'min_path' |
|
| 724 | ), |
|
| 725 | 'script-debug-false' => array( |
|
| 726 | '_inc/build/shortcodes/js/recipes.js', |
|
| 727 | 'modules/shortcodes/js/recipes.js', |
|
| 728 | false, |
|
| 729 | 'min_path', |
|
| 730 | 'non_min_path' |
|
| 731 | ), |
|
| 732 | ); |
|
| 733 | } |
|
| 734 | ||
| 735 | /** |
|
| 736 | * @dataProvider get_content_width_data |
|