Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ public function testDELETE()
$this->assertEquals($notificationDao->getComparison(), $restParams['comparison']);
$this->assertEquals($notificationDao->getBranch(), $restParams['branch']);


$notificationId = $notificationDao->getAggregateMetricNotificationId();
$resp = $this->_callRestApi('DELETE', '/tracker/aggregatemetricnotification/'.$notificationId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function testUserNotifications()

$expectedNotifiedUsers95thGreedyError = array(
$user1Dao->getUserId() => false,
$user2Dao->getUserId() => false
$user2Dao->getUserId() => false,
);

$aggregateMetricNotificationModel->createUserNotification($amn95thPercentileGreedyError, $user1Dao);
Expand All @@ -92,7 +92,7 @@ public function testUserNotifications()

$expectedNotifiedUsers55thGreedyError = array(
$user1Dao->getUserId() => false,
$user3Dao->getUserId() => false
$user3Dao->getUserId() => false,
);

$aggregateMetricNotificationModel->createUserNotification($amn55thPercentileGreedyError, $user1Dao);
Expand Down Expand Up @@ -152,7 +152,7 @@ public function testUserNotifications()

$expectedNotifiedUsers95thGreedyError = array(
$user1Dao->getUserId() => false,
$user2Dao->getUserId() => false
$user2Dao->getUserId() => false,
);

/** @var Tracker_AggregateMetricDao $greedyError95thSubmission2Metric */
Expand Down Expand Up @@ -185,7 +185,7 @@ public function testUserNotifications()

$expectedNotifiedUsers55thGreedyError = array(
$user1Dao->getUserId() => false,
$user3Dao->getUserId() => false
$user3Dao->getUserId() => false,
);

/** @var Tracker_AggregateMetricDao $greedyError55thSubmission2Metric */
Expand Down Expand Up @@ -261,7 +261,7 @@ public function testDelete()

// Ensure the linked users are deleted.
$db = Zend_Registry::get('dbAdapter');
$row = $db->query('select count(*) as count from tracker_user2aggregate_metric_notification where aggregate_metric_notification_id = '. $amnId)->fetch();
$row = $db->query('select count(*) as count from tracker_user2aggregate_metric_notification where aggregate_metric_notification_id = '.$amnId)->fetch();
$this->assertEquals($row['count'], 0);
$this->assertFalse($aggregateMetricNotificationModel->load($amnId));
}
Expand Down