/** * @expectedException coding_exception */ public function test_cannot_set_category_once_theme_set() { // Setup fixture. $this->testpage->force_theme(theme_config::DEFAULT_THEME); // Exercise SUT. $this->testpage->set_category_by_id(123); }
public function test_cannot_set_category_once_theme_set() { // Setup fixture. $this->testpage->force_theme(theme_config::DEFAULT_THEME); // Set expectation. $this->setExpectedException('coding_exception'); // Exercise SUT. $this->testpage->set_category_by_id(123); }