Changeset 875 in tests
- Timestamp:
- 07/03/2012 05:24:03 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 deleted
- 7 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/install.php
r842 r875 13 13 define( 'WP_INSTALLING', true ); 14 14 require_once $config_file_path; 15 require_once $config_dir . '/ wp-testlib/functions.php';15 require_once $config_dir . '/includes/functions.php'; 16 16 17 17 $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1'; -
trunk/bootstrap.php
r872 r875 8 8 require_once 'PHPUnit/Autoload.php'; 9 9 10 $config_file_path = dirname( __FILE__ ) . '/wp- config.php';10 $config_file_path = dirname( __FILE__ ) . '/wp-tests-config.php'; 11 11 12 12 /* … … 23 23 require_once $config_file_path; 24 24 25 define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/ wp-testdata' );25 define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/data' ); 26 26 27 27 if ( ! defined( 'WP_TESTS_FORCE_KNOWN_BUGS' ) ) … … 47 47 } 48 48 49 require dirname( __FILE__ ) . '/ wp-testlib/functions.php';49 require dirname( __FILE__ ) . '/includes/functions.php'; 50 50 51 51 // Preset WordPress options defined in bootstrap file. … … 68 68 _delete_all_posts(); 69 69 70 require dirname( __FILE__ ) . '/ wp-testlib/testcase.php';71 require dirname( __FILE__ ) . '/ wp-testlib/testcase-xmlrpc.php';72 require dirname( __FILE__ ) . '/ wp-testlib/testcase-ajax.php';73 require dirname( __FILE__ ) . '/ wp-testlib/exceptions.php';74 require dirname( __FILE__ ) . '/ wp-testlib/utils.php';70 require dirname( __FILE__ ) . '/includes/testcase.php'; 71 require dirname( __FILE__ ) . '/includes/testcase-xmlrpc.php'; 72 require dirname( __FILE__ ) . '/includes/testcase-ajax.php'; 73 require dirname( __FILE__ ) . '/includes/exceptions.php'; 74 require dirname( __FILE__ ) . '/includes/utils.php'; -
trunk/phpunit.xml
r866 r875 7 7 <!-- Default test suite to run all tests --> 8 8 <testsuite> 9 <directory suffix=".php"> wp-testcase</directory>10 <file phpVersion="5.3.0" phpVersionOperator=">=">wp-testcase/test_actions_closures.php</file>11 <exclude> wp-testcase/test_query_results.php</exclude>9 <directory suffix=".php">tests</directory> 10 <file phpVersion="5.3.0">tests/test_actions_closures.php</file> 11 <exclude>tests/test_query_results.php</exclude> 12 12 </testsuite> 13 13 </testsuites> -
trunk/tests/test_http.php
r874 r875 16 16 */ 17 17 abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase { 18 // You can use your own version of wp-testdata/WPHTTP-testcase-redirection-script.php here.18 // You can use your own version of data/WPHTTP-testcase-redirection-script.php here. 19 19 var $redirection_script = 'http://api.wordpress.org/core/tests/1.0/redirection.php'; 20 20 … … 157 157 158 158 function test_file_stream() { 159 $url = 'http://unit-tests.svn.wordpress.org/trunk/ wp-testdata/images/2004-07-22-DSC_0007.jpg'; // we'll test against a file in the unit test data159 $url = 'http://unit-tests.svn.wordpress.org/trunk/data/images/2004-07-22-DSC_0007.jpg'; // we'll test against a file in the unit test data 160 160 $size = 87348; 161 161 $res = wp_remote_request( $url, array( 'stream' => true, 'timeout' => 30 ) ); //Auto generate the filename. -
trunk/tests/test_import_wp.php
r861 r875 1 1 <?php 2 3 #include_once(DIR_TESTROOT.'/wp-testlib/wp-profiler.php');4 5 // need to include the importer as an external, so path may need to change...6 2 7 3 abstract class WP_Import_UnitTestCase extends WP_UnitTestCase { -
trunk/tests/test_includes_functions.php
r859 r875 99 99 function test_wp_unique_filename() { 100 100 /* this test requires: 101 - that you have dir + file ' wp-testdata/images/test-image.png',101 - that you have dir + file 'data/images/test-image.png', 102 102 - and that this dir is writeable 103 103 - there is an image 'test-image.png' that will be used to test unique filenames -
trunk/tests/test_post_output.php
r845 r875 141 141 // permalink page 142 142 $link = '/2008/04/01/simple-gallery-test/'; 143 $this-> http('/2008/04/01/simple-gallery-test/');143 $this->go_to('/2008/04/01/simple-gallery-test/'); 144 144 the_post(); 145 145 // filtered output … … 217 217 218 218 // permalink page 219 $this-> http('/2008/04/01/simple-gallery-test/');219 $this->go_to('/2008/04/01/simple-gallery-test/'); 220 220 the_post(); 221 221 // filtered output
Note: See TracChangeset
for help on using the changeset viewer.