From aef88c71f249ad1fd565ab77f6d74c9cef6b7652 Mon Sep 17 00:00:00 2001 From: David Pesce <davidpesce@gmail.com> Date: Sun, 11 Jun 2017 15:04:43 -0400 Subject: [PATCH] code climate fix for recipe_name --- lib/emitter/tests/AssignmentGradedTest.php | 2 +- lib/emitter/tests/AssignmentSubmittedTest.php | 2 +- lib/emitter/tests/AttemptCompletedTest.php | 2 +- lib/emitter/tests/AttemptStartedTest.php | 2 +- lib/emitter/tests/AttendedTest.php | 2 +- lib/emitter/tests/CourseCompletedTest.php | 2 +- lib/emitter/tests/CourseViewedTest.php | 2 +- lib/emitter/tests/DiscussionViewedTest.php | 2 +- lib/emitter/tests/EnrolmentCreatedTest.php | 2 +- lib/emitter/tests/EventEnrolTest.php | 2 +- lib/emitter/tests/EventTest.php | 4 ++-- lib/emitter/tests/EventUnenrolTest.php | 2 +- lib/emitter/tests/ModuleViewedTest.php | 2 +- lib/emitter/tests/QuestionAnsweredTest.php | 2 +- lib/emitter/tests/ScormEventTest.php | 2 +- lib/emitter/tests/ScormLaunchedTest.php | 2 +- lib/emitter/tests/ScormScoreRawSubmittedTest.php | 2 +- lib/emitter/tests/ScormStatusSubmittedTest.php | 2 +- lib/emitter/tests/UserLoggedinTest.php | 2 +- lib/emitter/tests/UserLoggedoutTest.php | 2 +- lib/emitter/tests/UserRegisteredTest.php | 2 +- lib/expander/docs/examples/AssignmentGraded.json | 3 +-- lib/expander/docs/examples/AssignmentSubmitted.json | 3 +-- lib/expander/docs/examples/AttemptEvent.json | 3 +-- lib/expander/docs/examples/CourseCompleted.json | 3 +-- lib/expander/docs/examples/DiscussionEvent.json | 3 +-- lib/expander/docs/examples/Event.json | 3 +-- lib/expander/docs/examples/FacetofaceAttended.json | 3 +-- lib/expander/docs/examples/FacetofaceEvent.json | 3 +-- lib/expander/docs/examples/FeedbackSubitted.json | 5 ++--- lib/expander/docs/examples/ModuleEvent.json | 3 +-- lib/expander/docs/examples/ScormLaunched.json | 3 +-- lib/expander/docs/examples/ScormSubmitted.json | 3 +-- lib/translator/tests/AssignmentGradedTest.php | 2 +- lib/translator/tests/AssignmentSubmittedTest.php | 2 +- lib/translator/tests/AttemptAbandonedTest.php | 2 +- lib/translator/tests/AttemptReviewedTest.php | 2 +- lib/translator/tests/AttemptStartedTest.php | 2 +- lib/translator/tests/CourseCompletedTest.php | 2 +- lib/translator/tests/CourseViewedTest.php | 2 +- lib/translator/tests/DiscussionViewedTest.php | 2 +- lib/translator/tests/EnrolmentCreatedTest.php | 2 +- lib/translator/tests/EventTest.php | 4 ++-- lib/translator/tests/FacetofaceAttendedTest.php | 2 +- lib/translator/tests/FacetofaceEnrolTest.php | 2 +- lib/translator/tests/FacetofaceUnernrolTest.php | 2 +- lib/translator/tests/FeedbackQuestionSubmittedTest.php | 2 +- lib/translator/tests/FeedbackSubmittedTest.php | 2 +- lib/translator/tests/ModuleViewedTest.php | 2 +- lib/translator/tests/QuestionSubmittedTest.php | 2 +- lib/translator/tests/ScormEventTest.php | 2 +- lib/translator/tests/ScormLaunchedTest.php | 2 +- lib/translator/tests/ScormScoreRawSubmittedTest.php | 2 +- lib/translator/tests/ScormStatusSubmittedTest.php | 2 +- lib/translator/tests/UserLoggedinTest.php | 2 +- lib/translator/tests/UserLoggedoutTest.php | 2 +- lib/translator/tests/UserRegisteredTest.php | 2 +- 57 files changed, 60 insertions(+), 72 deletions(-) diff --git a/lib/emitter/tests/AssignmentGradedTest.php b/lib/emitter/tests/AssignmentGradedTest.php index 3dfb115..7888160 100644 --- a/lib/emitter/tests/AssignmentGradedTest.php +++ b/lib/emitter/tests/AssignmentGradedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\AssignmentGraded as Event; class AssignmentGradedTest extends EventTest { - protected static $recipe_name = 'assignment_graded'; + protected static $recipeName = 'assignment_graded'; /** * Sets up the tests. diff --git a/lib/emitter/tests/AssignmentSubmittedTest.php b/lib/emitter/tests/AssignmentSubmittedTest.php index 7e293a5..8e88fef 100644 --- a/lib/emitter/tests/AssignmentSubmittedTest.php +++ b/lib/emitter/tests/AssignmentSubmittedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\AssignmentSubmitted as Event; class AssignmentSubmittedTest extends EventTest { - protected static $recipe_name = 'assignment_submitted'; + protected static $recipeName = 'assignment_submitted'; /** * Sets up the tests. diff --git a/lib/emitter/tests/AttemptCompletedTest.php b/lib/emitter/tests/AttemptCompletedTest.php index f1a4127..388ed37 100644 --- a/lib/emitter/tests/AttemptCompletedTest.php +++ b/lib/emitter/tests/AttemptCompletedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\AttemptCompleted as Event; class AttemptCompletedTest extends EventTest { - protected static $recipe_name = 'attempt_completed'; + protected static $recipeName = 'attempt_completed'; /** * Sets up the tests. diff --git a/lib/emitter/tests/AttemptStartedTest.php b/lib/emitter/tests/AttemptStartedTest.php index f24ff4a..ca9cdec 100644 --- a/lib/emitter/tests/AttemptStartedTest.php +++ b/lib/emitter/tests/AttemptStartedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\AttemptStarted as Event; class AttemptStartedTest extends EventTest { - protected static $recipe_name = 'attempt_started'; + protected static $recipeName = 'attempt_started'; /** * Sets up the tests. diff --git a/lib/emitter/tests/AttendedTest.php b/lib/emitter/tests/AttendedTest.php index c1481e6..fe4bdc2 100644 --- a/lib/emitter/tests/AttendedTest.php +++ b/lib/emitter/tests/AttendedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\Attended as Event; class AttendedTest extends EventTest { - protected static $recipe_name = 'training_session_attend'; + protected static $recipeName = 'training_session_attend'; /** * Sets up the tests. diff --git a/lib/emitter/tests/CourseCompletedTest.php b/lib/emitter/tests/CourseCompletedTest.php index 8785817..916434f 100644 --- a/lib/emitter/tests/CourseCompletedTest.php +++ b/lib/emitter/tests/CourseCompletedTest.php @@ -17,7 +17,7 @@ class CourseCompletedTest extends EventTest /** * @var string */ - protected static $recipe_name = 'course_completed'; + protected static $recipeName = 'course_completed'; /** * Sets up the tests. diff --git a/lib/emitter/tests/CourseViewedTest.php b/lib/emitter/tests/CourseViewedTest.php index 67148e1..892127e 100644 --- a/lib/emitter/tests/CourseViewedTest.php +++ b/lib/emitter/tests/CourseViewedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\CourseViewed as Event; class CourseViewedTest extends EventTest { - protected static $recipe_name = 'course_viewed'; + protected static $recipeName = 'course_viewed'; /** * Sets up the tests. diff --git a/lib/emitter/tests/DiscussionViewedTest.php b/lib/emitter/tests/DiscussionViewedTest.php index f7197e8..88bbd1b 100644 --- a/lib/emitter/tests/DiscussionViewedTest.php +++ b/lib/emitter/tests/DiscussionViewedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\DiscussionViewed as Event; class DiscussionViewedTest extends EventTest { - protected static $recipe_name = 'discussion_viewed'; + protected static $recipeName = 'discussion_viewed'; /** * Sets up the tests. diff --git a/lib/emitter/tests/EnrolmentCreatedTest.php b/lib/emitter/tests/EnrolmentCreatedTest.php index f6af217..d6116ba 100644 --- a/lib/emitter/tests/EnrolmentCreatedTest.php +++ b/lib/emitter/tests/EnrolmentCreatedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\EnrolmentCreated as Event; class EnrolmentCreatedTest extends EventTest { - protected static $recipe_name = 'enrolment_created'; + protected static $recipeName = 'enrolment_created'; /** * Sets up the tests. diff --git a/lib/emitter/tests/EventEnrolTest.php b/lib/emitter/tests/EventEnrolTest.php index 3675898..c8c19de 100644 --- a/lib/emitter/tests/EventEnrolTest.php +++ b/lib/emitter/tests/EventEnrolTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\EventEnrol as Event; class EventEnrolTest extends EventTest { - protected static $recipe_name = 'training_session_enrol'; + protected static $recipeName = 'training_session_enrol'; /** * Sets up the tests. diff --git a/lib/emitter/tests/EventTest.php b/lib/emitter/tests/EventTest.php index 8725f9d..dffb7c8 100644 --- a/lib/emitter/tests/EventTest.php +++ b/lib/emitter/tests/EventTest.php @@ -5,7 +5,7 @@ use \Locker\XApi\Statement as Statement; abstract class EventTest extends PhpUnitTestCase { protected static $xapiType = 'http://lrs.learninglocker.net/define/type/moodle/'; - protected static $recipe_name; + protected static $recipeName; /** * Sets up the tests. @@ -29,7 +29,7 @@ abstract class EventTest extends PhpUnitTestCase { $this->constructLog(), $this->constructApp(), $this->constructSource(), - ['recipe' => static::$recipe_name] + ['recipe' => static::$recipeName] ); } diff --git a/lib/emitter/tests/EventUnenrolTest.php b/lib/emitter/tests/EventUnenrolTest.php index adfa96d..f475e5d 100644 --- a/lib/emitter/tests/EventUnenrolTest.php +++ b/lib/emitter/tests/EventUnenrolTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\EventUnenrol as Event; class EventUnenrolTest extends EventTest { - protected static $recipe_name = 'training_session_unenrol'; + protected static $recipeName = 'training_session_unenrol'; /** * Sets up the tests. diff --git a/lib/emitter/tests/ModuleViewedTest.php b/lib/emitter/tests/ModuleViewedTest.php index 9b7f842..3a530ec 100644 --- a/lib/emitter/tests/ModuleViewedTest.php +++ b/lib/emitter/tests/ModuleViewedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\ModuleViewed as Event; class ModuleViewedTest extends EventTest { - protected static $recipe_name = 'module_viewed'; + protected static $recipeName = 'module_viewed'; /** * Sets up the tests. diff --git a/lib/emitter/tests/QuestionAnsweredTest.php b/lib/emitter/tests/QuestionAnsweredTest.php index 3747076..c58ad08 100644 --- a/lib/emitter/tests/QuestionAnsweredTest.php +++ b/lib/emitter/tests/QuestionAnsweredTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\QuestionAnswered as Event; class QuestionAnsweredTest extends EventTest { - protected static $recipe_name = 'attempt_question_completed'; + protected static $recipeName = 'attempt_question_completed'; /** * Sets up the tests. diff --git a/lib/emitter/tests/ScormEventTest.php b/lib/emitter/tests/ScormEventTest.php index 0c1e6a2..2dc0465 100644 --- a/lib/emitter/tests/ScormEventTest.php +++ b/lib/emitter/tests/ScormEventTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\ScormEvent as Event; class ScormEventTest extends EventTest { - protected static $recipe_name = 'scorm_event'; + protected static $recipeName = 'scorm_event'; /** * Sets up the tests. diff --git a/lib/emitter/tests/ScormLaunchedTest.php b/lib/emitter/tests/ScormLaunchedTest.php index 91c2109..bdc2241 100644 --- a/lib/emitter/tests/ScormLaunchedTest.php +++ b/lib/emitter/tests/ScormLaunchedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\ScormLaunched as Event; class ScormLaunchedTest extends EventTest { - protected static $recipe_name = 'scorm_launched'; + protected static $recipeName = 'scorm_launched'; /** * Sets up the tests. diff --git a/lib/emitter/tests/ScormScoreRawSubmittedTest.php b/lib/emitter/tests/ScormScoreRawSubmittedTest.php index 512bb9b..6646380 100644 --- a/lib/emitter/tests/ScormScoreRawSubmittedTest.php +++ b/lib/emitter/tests/ScormScoreRawSubmittedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\ScormScoreRawSubmitted as Event; class ScormScoreRawSubmittedTest extends ScormEventTest { - protected static $recipe_name = 'scorm_scoreraw_submitted'; + protected static $recipeName = 'scorm_scoreraw_submitted'; /** * Sets up the tests. diff --git a/lib/emitter/tests/ScormStatusSubmittedTest.php b/lib/emitter/tests/ScormStatusSubmittedTest.php index aeb81d4..b214798 100644 --- a/lib/emitter/tests/ScormStatusSubmittedTest.php +++ b/lib/emitter/tests/ScormStatusSubmittedTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\ScormStatusSubmitted as Event; class ScormStatusSubmittedTest extends ScormEventTest { - protected static $recipe_name = 'scorm_status_submitted'; + protected static $recipeName = 'scorm_status_submitted'; /** * Sets up the tests. diff --git a/lib/emitter/tests/UserLoggedinTest.php b/lib/emitter/tests/UserLoggedinTest.php index a2a7b42..b9a34e0 100644 --- a/lib/emitter/tests/UserLoggedinTest.php +++ b/lib/emitter/tests/UserLoggedinTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\UserLoggedin as Event; class UserLoggedinTest extends EventTest { - protected static $recipe_name = 'user_loggedin'; + protected static $recipeName = 'user_loggedin'; /** * Sets up the tests. diff --git a/lib/emitter/tests/UserLoggedoutTest.php b/lib/emitter/tests/UserLoggedoutTest.php index 49e782e..ae43abc 100644 --- a/lib/emitter/tests/UserLoggedoutTest.php +++ b/lib/emitter/tests/UserLoggedoutTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\UserLoggedout as Event; class UserLoggedoutTest extends EventTest { - protected static $recipe_name = 'user_loggedout'; + protected static $recipeName = 'user_loggedout'; /** * Sets up the tests. diff --git a/lib/emitter/tests/UserRegisteredTest.php b/lib/emitter/tests/UserRegisteredTest.php index e72c297..7cbd7f6 100644 --- a/lib/emitter/tests/UserRegisteredTest.php +++ b/lib/emitter/tests/UserRegisteredTest.php @@ -2,7 +2,7 @@ use \XREmitter\Events\UserRegistered as Event; class UserRegisteredTest extends EventTest { - protected static $recipe_name = 'user_registered'; + protected static $recipeName = 'user_registered'; /** * Sets up the tests. diff --git a/lib/expander/docs/examples/AssignmentGraded.json b/lib/expander/docs/examples/AssignmentGraded.json index c31c8a0..aaba4f1 100644 --- a/lib/expander/docs/examples/AssignmentGraded.json +++ b/lib/expander/docs/examples/AssignmentGraded.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/expander/docs/examples/AssignmentSubmitted.json b/lib/expander/docs/examples/AssignmentSubmitted.json index 0f59e64..0ef1325 100644 --- a/lib/expander/docs/examples/AssignmentSubmitted.json +++ b/lib/expander/docs/examples/AssignmentSubmitted.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/expander/docs/examples/AttemptEvent.json b/lib/expander/docs/examples/AttemptEvent.json index 3ef802a..ab61305 100644 --- a/lib/expander/docs/examples/AttemptEvent.json +++ b/lib/expander/docs/examples/AttemptEvent.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/expander/docs/examples/CourseCompleted.json b/lib/expander/docs/examples/CourseCompleted.json index cea7058..b1cc3e5 100644 --- a/lib/expander/docs/examples/CourseCompleted.json +++ b/lib/expander/docs/examples/CourseCompleted.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/expander/docs/examples/DiscussionEvent.json b/lib/expander/docs/examples/DiscussionEvent.json index aa33db3..8b1e270 100644 --- a/lib/expander/docs/examples/DiscussionEvent.json +++ b/lib/expander/docs/examples/DiscussionEvent.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/expander/docs/examples/Event.json b/lib/expander/docs/examples/Event.json index beeb205..29edb2a 100644 --- a/lib/expander/docs/examples/Event.json +++ b/lib/expander/docs/examples/Event.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/expander/docs/examples/FacetofaceAttended.json b/lib/expander/docs/examples/FacetofaceAttended.json index 2049bc6..b0bebd6 100644 --- a/lib/expander/docs/examples/FacetofaceAttended.json +++ b/lib/expander/docs/examples/FacetofaceAttended.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/expander/docs/examples/FacetofaceEvent.json b/lib/expander/docs/examples/FacetofaceEvent.json index 636f71d..ab18b4e 100644 --- a/lib/expander/docs/examples/FacetofaceEvent.json +++ b/lib/expander/docs/examples/FacetofaceEvent.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/expander/docs/examples/FeedbackSubitted.json b/lib/expander/docs/examples/FeedbackSubitted.json index 91d6fec..dced476 100644 --- a/lib/expander/docs/examples/FeedbackSubitted.json +++ b/lib/expander/docs/examples/FeedbackSubitted.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, @@ -117,6 +116,6 @@ "type": "object" } }, - "timemodified": 1497206145 + "timemodified": 1497207558 } } \ No newline at end of file diff --git a/lib/expander/docs/examples/ModuleEvent.json b/lib/expander/docs/examples/ModuleEvent.json index e85d788..40bfc13 100644 --- a/lib/expander/docs/examples/ModuleEvent.json +++ b/lib/expander/docs/examples/ModuleEvent.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/expander/docs/examples/ScormLaunched.json b/lib/expander/docs/examples/ScormLaunched.json index a1a6e52..b9826c8 100644 --- a/lib/expander/docs/examples/ScormLaunched.json +++ b/lib/expander/docs/examples/ScormLaunched.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/expander/docs/examples/ScormSubmitted.json b/lib/expander/docs/examples/ScormSubmitted.json index 425714c..1cfb2bb 100644 --- a/lib/expander/docs/examples/ScormSubmitted.json +++ b/lib/expander/docs/examples/ScormSubmitted.json @@ -42,8 +42,7 @@ "url": "http:\/\/www.example.com" }, "info": { - "https:\/\/moodle.org\/": "1.0.0", - "https:\/\/github.com\/LearningLocker\/Moodle-Log-Expander": null + "https:\/\/moodle.org\/": "1.0.0" }, "event": { "userid": 1, diff --git a/lib/translator/tests/AssignmentGradedTest.php b/lib/translator/tests/AssignmentGradedTest.php index 961f503..bee9c21 100644 --- a/lib/translator/tests/AssignmentGradedTest.php +++ b/lib/translator/tests/AssignmentGradedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\AssignmentGraded as Event; class AssignmentGradedTest extends ModuleViewedTest { - protected static $recipe_name = 'assignment_graded'; + protected static $recipeName = 'assignment_graded'; /** * Sets up the tests. diff --git a/lib/translator/tests/AssignmentSubmittedTest.php b/lib/translator/tests/AssignmentSubmittedTest.php index e31e4ed..c8c8866 100644 --- a/lib/translator/tests/AssignmentSubmittedTest.php +++ b/lib/translator/tests/AssignmentSubmittedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\AssignmentSubmitted as Event; class AssignmentSubmittedTest extends ModuleViewedTest { - protected static $recipe_name = 'assignment_submitted'; + protected static $recipeName = 'assignment_submitted'; /** * Sets up the tests. diff --git a/lib/translator/tests/AttemptAbandonedTest.php b/lib/translator/tests/AttemptAbandonedTest.php index 2c56c9a..37d56c5 100644 --- a/lib/translator/tests/AttemptAbandonedTest.php +++ b/lib/translator/tests/AttemptAbandonedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\AttemptAbandoned as Event; class AttemptAbandonedTest extends AttemptReviewedTest { - protected static $recipe_name = 'attempt_abandoned'; + protected static $recipeName = 'attempt_abandoned'; /** * Sets up the tests. diff --git a/lib/translator/tests/AttemptReviewedTest.php b/lib/translator/tests/AttemptReviewedTest.php index cae7db7..a9ed8c9 100644 --- a/lib/translator/tests/AttemptReviewedTest.php +++ b/lib/translator/tests/AttemptReviewedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\AttemptReviewed as Event; class AttemptReviewedTest extends AttemptStartedTest { - protected static $recipe_name = 'attempt_completed'; + protected static $recipeName = 'attempt_completed'; /** * Sets up the tests. diff --git a/lib/translator/tests/AttemptStartedTest.php b/lib/translator/tests/AttemptStartedTest.php index 3179907..4250de7 100644 --- a/lib/translator/tests/AttemptStartedTest.php +++ b/lib/translator/tests/AttemptStartedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\AttemptStarted as Event; class AttemptStartedTest extends ModuleViewedTest { - protected static $recipe_name = 'attempt_started'; + protected static $recipeName = 'attempt_started'; /** * Sets up the tests. diff --git a/lib/translator/tests/CourseCompletedTest.php b/lib/translator/tests/CourseCompletedTest.php index adccd64..70f3067 100644 --- a/lib/translator/tests/CourseCompletedTest.php +++ b/lib/translator/tests/CourseCompletedTest.php @@ -10,7 +10,7 @@ class CourseCompletedTest extends EventTest { /** * @var string */ - protected static $recipe_name = 'course_completed'; + protected static $recipeName = 'course_completed'; /** * Sets up the tests. diff --git a/lib/translator/tests/CourseViewedTest.php b/lib/translator/tests/CourseViewedTest.php index 616bcef..47be03b 100644 --- a/lib/translator/tests/CourseViewedTest.php +++ b/lib/translator/tests/CourseViewedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\CourseViewed as Event; class CourseViewedTest extends UserEventTest { - protected static $recipe_name = 'course_viewed'; + protected static $recipeName = 'course_viewed'; /** * Sets up the tests. diff --git a/lib/translator/tests/DiscussionViewedTest.php b/lib/translator/tests/DiscussionViewedTest.php index 26a41d3..2b61493 100644 --- a/lib/translator/tests/DiscussionViewedTest.php +++ b/lib/translator/tests/DiscussionViewedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\DiscussionViewed as Event; class DiscussionViewedTest extends ModuleViewedTest { - protected static $recipe_name = 'discussion_viewed'; + protected static $recipeName = 'discussion_viewed'; /** * Sets up the tests. diff --git a/lib/translator/tests/EnrolmentCreatedTest.php b/lib/translator/tests/EnrolmentCreatedTest.php index 221dc2e..c17ec12 100644 --- a/lib/translator/tests/EnrolmentCreatedTest.php +++ b/lib/translator/tests/EnrolmentCreatedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\EnrolmentCreated as Event; class EnrolmentCreatedTest extends EventTest { - protected static $recipe_name = 'enrolment_created'; + protected static $recipeName = 'enrolment_created'; /** * Sets up the tests. diff --git a/lib/translator/tests/EventTest.php b/lib/translator/tests/EventTest.php index 29753e2..49ce6b5 100644 --- a/lib/translator/tests/EventTest.php +++ b/lib/translator/tests/EventTest.php @@ -4,7 +4,7 @@ use \MXTranslator\Events\Event as Event; abstract class EventTest extends PhpUnitTestCase { protected static $xapiType = 'http://lrs.learninglocker.net/define/type/moodle/'; - protected static $recipe_name; + protected static $recipeName; /** * Sets up the tests. @@ -105,7 +105,7 @@ abstract class EventTest extends PhpUnitTestCase { protected function assertOutput($input, $output) { $this->assertApp($input['app'], $output, 'app'); $this->assertEvent($input['event'], $output); - $this->assertEquals(static::$recipe_name, $output['recipe']); + $this->assertEquals(static::$recipeName, $output['recipe']); $this->assertInfo($input['info'], $output['context_info']); } diff --git a/lib/translator/tests/FacetofaceAttendedTest.php b/lib/translator/tests/FacetofaceAttendedTest.php index dd16eea..6b4cf6d 100644 --- a/lib/translator/tests/FacetofaceAttendedTest.php +++ b/lib/translator/tests/FacetofaceAttendedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\FacetofaceAttend as Event; class FacetofaceAttendTest extends FacetofaceEnrolTest { - protected static $recipe_name = 'training_session_attend'; + protected static $recipeName = 'training_session_attend'; /** * Sets up the tests. diff --git a/lib/translator/tests/FacetofaceEnrolTest.php b/lib/translator/tests/FacetofaceEnrolTest.php index 5fe872a..c8b2dc0 100644 --- a/lib/translator/tests/FacetofaceEnrolTest.php +++ b/lib/translator/tests/FacetofaceEnrolTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\FacetofaceEnrol as Event; class FacetofaceEnrolTest extends ModuleViewedTest { - protected static $recipe_name = 'training_session_enrol'; + protected static $recipeName = 'training_session_enrol'; /** * Sets up the tests. diff --git a/lib/translator/tests/FacetofaceUnernrolTest.php b/lib/translator/tests/FacetofaceUnernrolTest.php index 1c85c00..cf3c73f 100644 --- a/lib/translator/tests/FacetofaceUnernrolTest.php +++ b/lib/translator/tests/FacetofaceUnernrolTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\FacetofaceUnenrol as Event; class FacetofaceUnenrolTest extends FacetofaceEnrolTest { - protected static $recipe_name = 'training_session_unenrol'; + protected static $recipeName = 'training_session_unenrol'; /** * Sets up the tests. diff --git a/lib/translator/tests/FeedbackQuestionSubmittedTest.php b/lib/translator/tests/FeedbackQuestionSubmittedTest.php index ca92fe2..cd9f438 100644 --- a/lib/translator/tests/FeedbackQuestionSubmittedTest.php +++ b/lib/translator/tests/FeedbackQuestionSubmittedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\FeedbackQuestionSubmitted as Event; class FeedbackQuestionSubmittedTest extends FeedbackSubmittedTest { - protected static $recipe_name = 'attempt_question_completed'; + protected static $recipeName = 'attempt_question_completed'; /** * Sets up the tests. diff --git a/lib/translator/tests/FeedbackSubmittedTest.php b/lib/translator/tests/FeedbackSubmittedTest.php index 875b501..651e16f 100644 --- a/lib/translator/tests/FeedbackSubmittedTest.php +++ b/lib/translator/tests/FeedbackSubmittedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\FeedbackSubmitted as Event; class FeedbackSubmittedTest extends ModuleViewedTest { - protected static $recipe_name = 'attempt_completed'; + protected static $recipeName = 'attempt_completed'; /** * Sets up the tests. diff --git a/lib/translator/tests/ModuleViewedTest.php b/lib/translator/tests/ModuleViewedTest.php index 5674682..59d5e54 100644 --- a/lib/translator/tests/ModuleViewedTest.php +++ b/lib/translator/tests/ModuleViewedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\ModuleViewed as Event; class ModuleViewedTest extends CourseViewedTest { - protected static $recipe_name = 'module_viewed'; + protected static $recipeName = 'module_viewed'; /** * Sets up the tests. diff --git a/lib/translator/tests/QuestionSubmittedTest.php b/lib/translator/tests/QuestionSubmittedTest.php index f73e262..9b230fd 100644 --- a/lib/translator/tests/QuestionSubmittedTest.php +++ b/lib/translator/tests/QuestionSubmittedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\QuestionSubmitted as Event; class QuestionSubmittedTest extends AttemptStartedTest { - protected static $recipe_name = 'attempt_question_completed'; + protected static $recipeName = 'attempt_question_completed'; /** * Sets up the tests. diff --git a/lib/translator/tests/ScormEventTest.php b/lib/translator/tests/ScormEventTest.php index 9ca2b07..32abe2b 100644 --- a/lib/translator/tests/ScormEventTest.php +++ b/lib/translator/tests/ScormEventTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\ScormEvent as Event; class ScormEventTest extends ModuleViewedTest { - protected static $recipe_name = 'scorm_event'; + protected static $recipeName = 'scorm_event'; /** * Sets up the tests. diff --git a/lib/translator/tests/ScormLaunchedTest.php b/lib/translator/tests/ScormLaunchedTest.php index ba327c3..9c5610e 100644 --- a/lib/translator/tests/ScormLaunchedTest.php +++ b/lib/translator/tests/ScormLaunchedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\ScormLaunched as Event; class ScormLaunchedTest extends ModuleViewedTest { - protected static $recipe_name = 'scorm_launched'; + protected static $recipeName = 'scorm_launched'; /** * Sets up the tests. diff --git a/lib/translator/tests/ScormScoreRawSubmittedTest.php b/lib/translator/tests/ScormScoreRawSubmittedTest.php index 5e748b1..17cb72c 100644 --- a/lib/translator/tests/ScormScoreRawSubmittedTest.php +++ b/lib/translator/tests/ScormScoreRawSubmittedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\ScormScoreRawSubmitted as Event; class ScormScoreRawSubmittedTest extends ScormEventTest { - protected static $recipe_name = 'scorm_scoreraw_submitted'; + protected static $recipeName = 'scorm_scoreraw_submitted'; /** * Sets up the tests. diff --git a/lib/translator/tests/ScormStatusSubmittedTest.php b/lib/translator/tests/ScormStatusSubmittedTest.php index 7d9ef17..4b800f0 100644 --- a/lib/translator/tests/ScormStatusSubmittedTest.php +++ b/lib/translator/tests/ScormStatusSubmittedTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\ScormStatusSubmitted as Event; class ScormStatusSubmittedTest extends ScormEventTest { - protected static $recipe_name = 'scorm_status_submitted'; + protected static $recipeName = 'scorm_status_submitted'; /** * Sets up the tests. diff --git a/lib/translator/tests/UserLoggedinTest.php b/lib/translator/tests/UserLoggedinTest.php index 751f55e..c69d04e 100644 --- a/lib/translator/tests/UserLoggedinTest.php +++ b/lib/translator/tests/UserLoggedinTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\UserLoggedin as Event; class UserLoggedinTest extends UserEventTest { - protected static $recipe_name = 'user_loggedin'; + protected static $recipeName = 'user_loggedin'; /** * Sets up the tests. diff --git a/lib/translator/tests/UserLoggedoutTest.php b/lib/translator/tests/UserLoggedoutTest.php index 18b51bb..9a1aca1 100644 --- a/lib/translator/tests/UserLoggedoutTest.php +++ b/lib/translator/tests/UserLoggedoutTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\UserLoggedout as Event; class UserLoggedoutTest extends UserEventTest { - protected static $recipe_name = 'user_loggedout'; + protected static $recipeName = 'user_loggedout'; /** * Sets up the tests. diff --git a/lib/translator/tests/UserRegisteredTest.php b/lib/translator/tests/UserRegisteredTest.php index 96e8132..50121f4 100644 --- a/lib/translator/tests/UserRegisteredTest.php +++ b/lib/translator/tests/UserRegisteredTest.php @@ -2,7 +2,7 @@ use \MXTranslator\Events\UserRegistered as Event; class UserRegisteredTest extends EventTest { - protected static $recipe_name = 'user_registered'; + protected static $recipeName = 'user_registered'; /** * Sets up the tests. -- GitLab