forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-43557 events: fixed minor issues in existing events
- Loading branch information
Showing
319 changed files
with
2,569 additions
and
1,935 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
* @copyright 2014 Ankit Agarwal <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class core_calendar_event_testcase extends advanced_testcase { | ||
class core_calendar_events_testcase extends advanced_testcase { | ||
|
||
/** | ||
* The test user. | ||
|
@@ -126,7 +126,7 @@ public function test_calendar_event_created_validations() { | |
$this->fail("Event validation should not allow \\core\\event\\calendar_event_created to be triggered without | ||
other['repeatid']"); | ||
} catch (coding_exception $e) { | ||
$this->assertContains("Field other['repeatid'] must be set", $e->getMessage()); | ||
$this->assertContains('The \'repeatid\' value must be set in other.', $e->getMessage()); | ||
} | ||
|
||
// Test not setting other['name']. | ||
|
@@ -142,7 +142,7 @@ public function test_calendar_event_created_validations() { | |
$this->fail("Event validation should not allow \\core\\event\\calendar_event_created to be triggered without | ||
other['name']"); | ||
} catch (coding_exception $e) { | ||
$this->assertContains("Field other['name'] cannot be empty", $e->getMessage()); | ||
$this->assertContains('The \'name\' value must be set in other.', $e->getMessage()); | ||
} | ||
|
||
// Test not setting other['timestart']. | ||
|
@@ -158,7 +158,7 @@ public function test_calendar_event_created_validations() { | |
$this->fail("Event validation should not allow \\core\\event\\calendar_event_deleted to be triggered without | ||
other['timestart']"); | ||
} catch (coding_exception $e) { | ||
$this->assertContains("Field other['timestart'] cannot be empty", $e->getMessage()); | ||
$this->assertContains('The \'timestart\' value must be set in other.', $e->getMessage()); | ||
} | ||
} | ||
|
||
|
@@ -239,7 +239,7 @@ public function test_calendar_event_updated_validations() { | |
$this->fail("Event validation should not allow \\core\\event\\calendar_event_updated to be triggered without | ||
other['repeatid']"); | ||
} catch (coding_exception $e) { | ||
$this->assertContains("Field other['repeatid'] must be set", $e->getMessage()); | ||
$this->assertContains('The \'repeatid\' value must be set in other.', $e->getMessage()); | ||
} | ||
|
||
// Test not setting other['name']. | ||
|
@@ -255,7 +255,7 @@ public function test_calendar_event_updated_validations() { | |
$this->fail("Event validation should not allow \\core\\event\\calendar_event_updated to be triggered without | ||
other['name']"); | ||
} catch (coding_exception $e) { | ||
$this->assertContains("Field other['name'] cannot be empty", $e->getMessage()); | ||
$this->assertContains('The \'name\' value must be set in other.', $e->getMessage()); | ||
} | ||
|
||
// Test not setting other['timestart']. | ||
|
@@ -271,7 +271,7 @@ public function test_calendar_event_updated_validations() { | |
$this->fail("Event validation should not allow \\core\\event\\calendar_event_deleted to be triggered without | ||
other['timestart']"); | ||
} catch (coding_exception $e) { | ||
$this->assertContains("Field other['timestart'] cannot be empty", $e->getMessage()); | ||
$this->assertContains('The \'timestart\' value must be set in other.', $e->getMessage()); | ||
} | ||
} | ||
|
||
|
@@ -351,7 +351,7 @@ public function test_calendar_event_deleted_validations() { | |
$this->fail("Event validation should not allow \\core\\event\\calendar_event_deleted to be triggered without | ||
other['repeatid']"); | ||
} catch (coding_exception $e) { | ||
$this->assertContains("Field other['repeatid'] must be set", $e->getMessage()); | ||
$this->assertContains('The \'repeatid\' value must be set in other.', $e->getMessage()); | ||
} | ||
|
||
// Test not setting other['name']. | ||
|
@@ -367,7 +367,7 @@ public function test_calendar_event_deleted_validations() { | |
$this->fail("Event validation should not allow \\core\\event\\calendar_event_deleted to be triggered without | ||
other['name']"); | ||
} catch (coding_exception $e) { | ||
$this->assertContains("Field other['name'] cannot be empty", $e->getMessage()); | ||
$this->assertContains('The \'name\' value must be set in other.', $e->getMessage()); | ||
} | ||
|
||
// Test not setting other['timestart']. | ||
|
@@ -383,7 +383,7 @@ public function test_calendar_event_deleted_validations() { | |
$this->fail("Event validation should not allow \\core\\event\\calendar_event_deleted to be triggered without | ||
other['timestart']"); | ||
} catch (coding_exception $e) { | ||
$this->assertContains("Field other['timestart'] cannot be empty", $e->getMessage()); | ||
$this->assertContains('The \'timestart\' value must be set in other.', $e->getMessage()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.