Skip to:
Content

BuddyPress.org

Changeset 10502


Ignore:
Timestamp:
02/03/2016 09:20:30 PM (6 years ago)
Author:
imath
Message:

Fix the unit test about BP_Attachment::get_image_data()

WordPress changed the type of the "Orientation" image metadata from an integer to a string. As we were using a strict comparison inside the unit test, it was failing.

Fixes #6868

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/class-bp-attachment.php

    r10194 r10502  
    462462        $image_data = BP_Attachment::get_image_data( BP_TESTS_DIR . 'assets/upside-down.jpg' );
    463463
    464         $this->assertTrue( 3 === $image_data['meta']['orientation'] );
     464        $this->assertTrue( 3 == $image_data['meta']['orientation'] );
    465465    }
    466466
Note: See TracChangeset for help on using the changeset viewer.