Add missing test case

This commit is contained in:
Daniel Siepmann 2020-09-22 11:16:59 +02:00
parent c234d3e757
commit bafbc76cfa
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -198,4 +198,19 @@ class LinkTest extends TestCase
$subject->getVerificationButton('self')
);
}
/**
* @test
*/
public function throwsExceptionIfNoSkillIdIsProvided()
{
$settings = $this->prophesize(Settings::class);
$settings->getMySkillDisplayUrl()->willReturn('https://my.example.com/verify');
$subject = new Link($settings->reveal());
$this->expectExceptionMessage('No skill ID provided.');
$this->expectExceptionCode(1599723825);
$subject->getVerificationLink('education');
}
}