Rename suscribe_sessions_to_promotion() to subscribe_sessions_to_promotion()

pull/2487/head
Yannick Warnier 9 years ago
parent 7e917cd1a8
commit 0851cc564d
  1. 2
      main/admin/add_sessions_to_promotion.php
  2. 2
      main/inc/lib/promotion.lib.php
  3. 4
      main/inc/lib/sessionmanager.lib.php
  4. 6
      tests/phpunit/classes/SessionManager.lib.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;
}

@ -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
);

@ -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

@ -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(

Loading…
Cancel
Save