/** * Test that a disabled tour should never be shown to users. */ public function test_should_show_for_user_disabled() { $tour = new \tool_usertours\tour(); $tour->set_enabled(false); $this->assertFalse($tour->should_show_for_user()); }
/** * Test that a disabled tour should never be shown to users. */ public function test_should_show_for_user_disabled() { $tour = new \tool_usertours\tour(); $tour->set_enabled(false); $this->assertFalse($tour->should_show_for_user()); }