public function test_cardbyshortname()
 {
     $card = $this->courseservice->cardbyshortname($this->courses[0]->shortname);
     $this->assertTrue($card instanceof course_card);
     $this->assertEquals($card->courseid, $this->courses[0]->id);
 }