mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Fix call to irrelevant function in testFetchByUserOffset
testFetchByUserOffset should be testing fetchByUsreOffset(), not fetchNewestByUserBundleHash(). Change-Id: Ie8c29714c4054999d14ebf0a3884912950be3837
This commit is contained in:
parent
ce3d6b2f49
commit
fb1afa15e8
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue