public function test_set_url_does_not_change_explicit_page_type() { // Setup fixture. $this->testpage->set_pagetype('a-page-type'); // Exercise SUT. $this->testpage->set_url('/mod/quiz/attempt.php', array('attempt' => 123, 'page' => 7)); // Validated. $this->assertSame('a-page-type', $this->testpage->pagetype); }