mirror of
https://github.com/SkillDisplay/PHPToolKit.git
synced 2024-11-21 23:46:09 +01:00
Add missing test case
This commit is contained in:
parent
c234d3e757
commit
bafbc76cfa
1 changed files with 15 additions and 0 deletions
|
@ -198,4 +198,19 @@ class LinkTest extends TestCase
|
||||||
$subject->getVerificationButton('self')
|
$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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue