Skip to content

Commit

Permalink
issue #166: Add PHPDoc to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottVerbeek committed Jan 8, 2024
1 parent b2531b2 commit 77d892b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cleaner/muc/tests/phpunit/output/index_renderer_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 77d892b

Please sign in to comment.