Fix call to irrelevant function in testFetchByUserOffset

testFetchByUserOffset should be testing fetchByUsreOffset(),
not fetchNewestByUserBundleHash().

Change-Id: Ie8c29714c4054999d14ebf0a3884912950be3837
This commit is contained in:
Roan Kattouw 2016-08-25 16:47:35 -07:00
parent ce3d6b2f49
commit fb1afa15e8

View file

@ -154,7 +154,7 @@ class EchoNotificationMapperTest extends MediaWikiTestCase {
'notification_bundle_display_hash' => 'testdisplayhash'
);
$notifMapper = new EchoNotificationMapper( $this->mockMWEchoDbFactory( array( 'selectRow' => $dbResult ) ) );
$row = $notifMapper->fetchNewestByUserBundleHash( User::newFromId( 1 ), 500 );
$row = $notifMapper->fetchByUserOffset( User::newFromId( 1 ), 500 );
$this->assertInstanceOf( 'EchoNotification', $row );
}