From 0851cc564d9429230abb76b81bf290c97ffbd17d Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 11 Oct 2016 17:44:33 -0500 Subject: [PATCH] Rename suscribe_sessions_to_promotion() to subscribe_sessions_to_promotion() --- main/admin/add_sessions_to_promotion.php | 2 +- main/inc/lib/promotion.lib.php | 2 +- main/inc/lib/sessionmanager.lib.php | 4 ++-- tests/phpunit/classes/SessionManager.lib.php | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/main/admin/add_sessions_to_promotion.php b/main/admin/add_sessions_to_promotion.php index 15ba0d7ac0..31dc4145f2 100755 --- a/main/admin/add_sessions_to_promotion.php +++ b/main/admin/add_sessions_to_promotion.php @@ -78,7 +78,7 @@ if (isset($_POST['form_sent']) && $_POST['form_sent']) { } if ($form_sent == 1) { // Added a parameter to send emails when registering a user - SessionManager::suscribe_sessions_to_promotion($id, $session_in_promotion_posted); + SessionManager::subscribe_sessions_to_promotion($id, $session_in_promotion_posted); header('Location: promotions.php'); exit; } diff --git a/main/inc/lib/promotion.lib.php b/main/inc/lib/promotion.lib.php index a951c4490f..4edbc068eb 100755 --- a/main/inc/lib/promotion.lib.php +++ b/main/inc/lib/promotion.lib.php @@ -108,7 +108,7 @@ class Promotion extends Model } if (!empty($new_session_list)) { - SessionManager::suscribe_sessions_to_promotion( + SessionManager::subscribe_sessions_to_promotion( $pid, $new_session_list ); diff --git a/main/inc/lib/sessionmanager.lib.php b/main/inc/lib/sessionmanager.lib.php index 087e332561..1ede8d89ac 100755 --- a/main/inc/lib/sessionmanager.lib.php +++ b/main/inc/lib/sessionmanager.lib.php @@ -3745,7 +3745,7 @@ class SessionManager * @param int $promotion_id * @param array $list */ - public static function suscribe_sessions_to_promotion($promotion_id, $list) + public static function subscribe_sessions_to_promotion($promotion_id, $list) { $t = Database::get_main_table(TABLE_MAIN_SESSION); $params = array(); @@ -3775,7 +3775,7 @@ class SessionManager /** * Copies a session with the same data to a new session. - * The new copy is not assigned to the same promotion. @see suscribe_sessions_to_promotions() for that + * The new copy is not assigned to the same promotion. @see subscribe_sessions_to_promotions() for that * @param int Session ID * @param bool Whether to copy the relationship with courses * @param bool Whether to copy the relationship with users diff --git a/tests/phpunit/classes/SessionManager.lib.php b/tests/phpunit/classes/SessionManager.lib.php index 013ca10320..5bd088dac9 100755 --- a/tests/phpunit/classes/SessionManager.lib.php +++ b/tests/phpunit/classes/SessionManager.lib.php @@ -435,10 +435,10 @@ class SessionManagerTest extends PHPUnit_Framework_TestCase } /** - * @covers SessionManager::suscribe_sessions_to_promotion - * @todo Implement testSuscribe_sessions_to_promotion(). + * @covers SessionManager::subscribe_sessions_to_promotion + * @todo Implement testSubscribe_sessions_to_promotion(). */ - public function testSuscribe_sessions_to_promotion() + public function testSubscribe_sessions_to_promotion() { // Remove the following lines when you implement this test. $this->markTestIncomplete(