IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
58 | 58 | $role->add_cap( 'level_0' ); |
59 | 59 | |
60 | 60 | $orig_file = DIR_TESTDATA . '/images/canola.jpg'; |
61 | | $this->test_file = '/tmp/canola.jpg'; |
| 61 | $this->test_file = sys_get_temp_dir() . '/canola.jpg'; |
62 | 62 | copy( $orig_file, $this->test_file ); |
63 | 63 | $orig_file2 = DIR_TESTDATA . '/images/codeispoetry.png'; |
64 | | $this->test_file2 = '/tmp/codeispoetry.png'; |
| 64 | $this->test_file2 = sys_get_temp_dir() . '/codeispoetry.png'; |
65 | 65 | copy( $orig_file2, $this->test_file2 ); |
66 | 66 | } |
67 | 67 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
60 | 60 | $this->undefined = new stdClass(); |
61 | 61 | |
62 | 62 | $orig_file = DIR_TESTDATA . '/images/canola.jpg'; |
63 | | $this->test_file = '/tmp/canola.jpg'; |
| 63 | $this->test_file = sys_get_temp_dir() . '/canola.jpg'; |
64 | 64 | copy( $orig_file, $this->test_file ); |
65 | 65 | $orig_file2 = DIR_TESTDATA . '/images/waffles.jpg'; |
66 | | $this->test_file2 = '/tmp/waffles.jpg'; |
| 66 | $this->test_file2 = sys_get_temp_dir() . '/waffles.jpg'; |
67 | 67 | copy( $orig_file2, $this->test_file2 ); |
68 | 68 | } |
69 | 69 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
5 | 5 | class Test_Theme_File extends WP_UnitTestCase { |
6 | 6 | |
7 | 7 | public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { |
8 | | symlink( DIR_TESTDATA . '/theme-file-parent', WP_CONTENT_DIR . '/themes/theme-file-parent' ); |
9 | | symlink( DIR_TESTDATA . '/theme-file-child', WP_CONTENT_DIR . '/themes/theme-file-child' ); |
| 8 | |
| 9 | mkdir( WP_CONTENT_DIR . '/themes/theme-file-parent' ); |
| 10 | copy( DIR_TESTDATA . '/theme-file-parent/parent-and-child.php', WP_CONTENT_DIR . '/themes/theme-file-parent/parent-and-child.php' ); |
| 11 | copy( DIR_TESTDATA . '/theme-file-parent/parent-only.php', WP_CONTENT_DIR . '/themes/theme-file-parent/parent-only.php' ); |
| 12 | copy( DIR_TESTDATA . '/theme-file-parent/style.css', WP_CONTENT_DIR . '/themes/theme-file-parent/style.css' ); |
| 13 | |
| 14 | mkdir( WP_CONTENT_DIR . '/themes/theme-file-child' ); |
| 15 | copy( DIR_TESTDATA . '/theme-file-child/parent-and-child.php', WP_CONTENT_DIR . '/themes/theme-file-child/parent-and-child.php' ); |
| 16 | copy( DIR_TESTDATA . '/theme-file-child/child-only.php', WP_CONTENT_DIR . '/themes/theme-file-child/child-only.php' ); |
| 17 | copy( DIR_TESTDATA . '/theme-file-child/style.css', WP_CONTENT_DIR . '/themes/theme-file-child/style.css' ); |
10 | 18 | } |
11 | 19 | |
12 | 20 | public static function wpTearDownAfterClass() { |
13 | | unlink( WP_CONTENT_DIR . '/themes/theme-file-parent' ); |
14 | | unlink( WP_CONTENT_DIR . '/themes/theme-file-child' ); |
| 21 | |
| 22 | unlink( WP_CONTENT_DIR . '/themes/theme-file-parent/parent-and-child.php' ); |
| 23 | unlink( WP_CONTENT_DIR . '/themes/theme-file-parent/parent-only.php' ); |
| 24 | unlink( WP_CONTENT_DIR . '/themes/theme-file-parent/style.css' ); |
| 25 | rmdir( WP_CONTENT_DIR . '/themes/theme-file-parent' ); |
| 26 | unlink( WP_CONTENT_DIR . '/themes/theme-file-child/parent-and-child.php' ); |
| 27 | unlink( WP_CONTENT_DIR . '/themes/theme-file-child/child-only.php' ); |
| 28 | unlink( WP_CONTENT_DIR . '/themes/theme-file-child/style.css' ); |
| 29 | rmdir( WP_CONTENT_DIR . '/themes/theme-file-child' ); |
15 | 30 | } |
16 | 31 | |
17 | 32 | /** |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
8 | 8 | function setUp() { |
9 | 9 | parent::setUp(); |
10 | 10 | |
11 | | $file = tempnam( '/tmp', 'foo') ; |
| 11 | $file = tempnam( sys_get_temp_dir(), 'foo') ; |
12 | 12 | $this->dir = dirname( $file ); |
13 | 13 | unlink( $file ); |
14 | 14 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
311 | 311 | function test_render_media() { |
312 | 312 | $widget = new WP_Widget_Media_Image(); |
313 | 313 | |
314 | | $test_image = '/tmp/canola.jpg'; |
| 314 | $test_image = sys_get_temp_dir() . '/canola.jpg'; |
315 | 315 | copy( DIR_TESTDATA . '/images/canola.jpg', $test_image ); |
316 | 316 | $attachment_id = self::factory()->attachment->create_object( array( |
317 | 317 | 'file' => $test_image, |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
129 | 129 | */ |
130 | 130 | function test_is_attachment_with_mime_type() { |
131 | 131 | |
132 | | $test_image = '/tmp/canola.jpg'; |
| 132 | $test_image = sys_get_temp_dir() . '/canola.jpg'; |
133 | 133 | copy( DIR_TESTDATA . '/images/canola.jpg', $test_image ); |
134 | 134 | $attachment_id = self::factory()->attachment->create_object( array( |
135 | 135 | 'file' => $test_image, |