public function test_no_grading() { $actual = local::grading(); $expected = '<p>You have no submissions to grade.</p>'; $this->assertSame($actual, $expected); }
/** * Get the user's grading from courses they teach. * * @return string */ public function get_grading_action() { return json_encode(array('html' => \theme_snap\local::grading())); }