From fac26304f80119064cf2de5c5671198e1043fab1 Mon Sep 17 00:00:00 2001 From: mgrauer Date: Tue, 12 Apr 2016 22:26:28 -0400 Subject: [PATCH] Applied fixes from StyleCI --- .../ApiAggregatemetricnotificationComponentTest.php | 1 - .../base/AggregateMetricNotificationModelTest.php | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/tracker/tests/controllers/ApiAggregatemetricnotificationComponentTest.php b/modules/tracker/tests/controllers/ApiAggregatemetricnotificationComponentTest.php index 1d7387b47..a3a498fe4 100644 --- a/modules/tracker/tests/controllers/ApiAggregatemetricnotificationComponentTest.php +++ b/modules/tracker/tests/controllers/ApiAggregatemetricnotificationComponentTest.php @@ -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); diff --git a/modules/tracker/tests/models/base/AggregateMetricNotificationModelTest.php b/modules/tracker/tests/models/base/AggregateMetricNotificationModelTest.php index 348b1b4ce..d3188ec0f 100644 --- a/modules/tracker/tests/models/base/AggregateMetricNotificationModelTest.php +++ b/modules/tracker/tests/models/base/AggregateMetricNotificationModelTest.php @@ -69,7 +69,7 @@ public function testUserNotifications() $expectedNotifiedUsers95thGreedyError = array( $user1Dao->getUserId() => false, - $user2Dao->getUserId() => false + $user2Dao->getUserId() => false, ); $aggregateMetricNotificationModel->createUserNotification($amn95thPercentileGreedyError, $user1Dao); @@ -92,7 +92,7 @@ public function testUserNotifications() $expectedNotifiedUsers55thGreedyError = array( $user1Dao->getUserId() => false, - $user3Dao->getUserId() => false + $user3Dao->getUserId() => false, ); $aggregateMetricNotificationModel->createUserNotification($amn55thPercentileGreedyError, $user1Dao); @@ -152,7 +152,7 @@ public function testUserNotifications() $expectedNotifiedUsers95thGreedyError = array( $user1Dao->getUserId() => false, - $user2Dao->getUserId() => false + $user2Dao->getUserId() => false, ); /** @var Tracker_AggregateMetricDao $greedyError95thSubmission2Metric */ @@ -185,7 +185,7 @@ public function testUserNotifications() $expectedNotifiedUsers55thGreedyError = array( $user1Dao->getUserId() => false, - $user3Dao->getUserId() => false + $user3Dao->getUserId() => false, ); /** @var Tracker_AggregateMetricDao $greedyError55thSubmission2Metric */ @@ -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)); }