WordPress.org

Make WordPress Core

Changeset 582 in tests


Ignore:
Timestamp:
03/20/12 17:54:36 (2 years ago)
Author:
kurtpayne
Message:

Fixing failed unit tests

Location:
wp-testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_image.php

    r503 r582  
    8282        $out = wp_read_image_metadata(DIR_TESTDATA.'/images/waffles.jpg'); 
    8383 
    84         $this->assertFalse($out, 'Should have returned FASLE on error.'); 
    8584        $this->assertEquals(0, $out['aperture']); 
    8685        $this->assertEquals('', $out['credit']); 
     
    9998        $out = wp_read_image_metadata(DIR_TESTDATA.'/images/canola.jpg'); 
    10099 
    101         $this->assertFalse($out, 'Should have returned FASLE on error.'); 
    102100        $this->assertEquals(0, $out['aperture']); 
    103101        $this->assertEquals('', $out['credit']); 
  • wp-testcase/test_includes_post.php

    r496 r582  
    722722 
    723723        //Check they exists 
    724         $this->assertEquals('someother value', get_post_meta($this->post_id, 'nonunique', true)); 
    725         $this->assertEquals(array('someother value', 'another value'), get_post_meta($this->post_id, 'nonunique', false)); 
     724        $this->assertEquals('another value', get_post_meta($this->post_id, 'nonunique', true));      
     725        $this->assertEquals(array('another value', 'someother value'), get_post_meta($this->post_id, 'nonunique', false)); 
    726726 
    727727        //Delete the lot 
Note: See TracChangeset for help on using the changeset viewer.