Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/19/2016 06:18:07 PM (9 years ago)
Author:
r-a-y
Message:

Core: Remove redundant strtotime() calls.

See #5781.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/functions.php

    r10972 r11019  
    601601
    602602    /**
     603     * @group bp_core_time_since
     604     */
     605    public function test_bp_core_time_since_mysql_and_unix_timestamp_return_same_value() {
     606        $mysql_date   = '2008-03-25 17:13:55';
     607
     608        $ts_mysql     = bp_core_time_since( $mysql_date );
     609        $ts_timestamp = bp_core_time_since( strtotime( $mysql_date ) );
     610
     611        $this->assertSame( $ts_mysql, $ts_timestamp );
     612    }
     613
     614    /**
    603615     * @group bp_attachments
    604616     * @group bp_upload_dir
Note: See TracChangeset for help on using the changeset viewer.