Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/01/2014 02:48:42 AM (11 years ago)
Author:
boonebgorges
Message:

Use correct date() format throughout unit tests

Also fix incorrect value reference in xprofile/activity tests. Props DJPaul

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testcases/activity/class.BP_Activity_Activity.php

    r7951 r8012  
    429429        $now = time();
    430430        $a1 = $this->factory->activity->create( array(
    431             'recorded_time' => date( 'Y-m-d h:i:s', $now - 500 ),
    432         ) );
    433         $a2 = $this->factory->activity->create( array(
    434             'recorded_time' => date( 'Y-m-d h:i:s', $now - 100 ),
     431            'recorded_time' => date( 'Y-m-d H:i:s', $now - 500 ),
     432        ) );
     433        $a2 = $this->factory->activity->create( array(
     434            'recorded_time' => date( 'Y-m-d H:i:s', $now - 100 ),
    435435        ) );
    436436        $a3 = $this->factory->activity->create( array(
    437             'recorded_time' => date( 'Y-m-d h:i:s', $now - 300 ),
    438         ) );
    439 
    440         $this->assertSame( date( 'Y-m-d h:i:s', $now - 100 ), BP_Activity_Activity::get_last_updated() );
     437            'recorded_time' => date( 'Y-m-d H:i:s', $now - 300 ),
     438        ) );
     439
     440        $this->assertSame( date( 'Y-m-d H:i:s', $now - 100 ), BP_Activity_Activity::get_last_updated() );
    441441    }
    442442}
Note: See TracChangeset for help on using the changeset viewer.