TestTimberImage::testUpSizing PHP Method

testUpSizing() public method

public testUpSizing ( )
    function testUpSizing()
    {
        $data = array();
        $file_loc = self::copyTestImage('stl.jpg');
        $upload_dir = wp_upload_dir();
        $new_file = TimberImageHelper::resize($upload_dir['url'] . '/stl.jpg', 500, 200, 'default', true);
        $location_of_image = TimberImageHelper::get_server_location($new_file);
        $size = getimagesize($location_of_image);
        $this->assertEquals(500, $size[0]);
    }