-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2531b2
commit 77d892b
Showing
1 changed file
with
12 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,12 @@ protected function setUp() : void { | |
$USER->email = '[email protected]'; | ||
} | ||
|
||
/** | ||
* Test controller::index() returns a complete HTML document by default. | ||
* | ||
* @covers \cleaner_muc\controller::index() | ||
* @return void | ||
*/ | ||
public function test_it_outputs_header_and_footer() { | ||
$html = $this->get_page(); | ||
|
||
|
@@ -115,6 +121,12 @@ public function test_it_downloads_the_current_config_file() { | |
$this->resetDebugging(); // This may show some debugging messages because cache definitions changed. | ||
} | ||
|
||
/** | ||
* Test that download view is rendered by controller::index() when action is download. | ||
* | ||
* @covers \cleaner_muc\controller::index() | ||
* @return void | ||
*/ | ||
public function test_it_downloads_environment_config_file() { | ||
self::create_muc_config('http://moodle.test/somewhere', 'My Config'); | ||
|
||
|