mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-23 22:13:38 +00:00
test: 🚨 fix test
This commit is contained in:
parent
d8afbf55fc
commit
e2cc430ffa
|
@ -58,6 +58,7 @@ class CitizenComponentLink implements CitizenComponent {
|
|||
}
|
||||
}
|
||||
return [
|
||||
'href' => $this->href,
|
||||
'icon' => $this->icon,
|
||||
'text' => $this->text,
|
||||
'array-attributes' => [
|
||||
|
|
|
@ -20,7 +20,7 @@ class CitizenComponentLinkTest extends MediaWikiUnitTestCase {
|
|||
* @covers ::getTemplateData
|
||||
*/
|
||||
public function testGetTemplateData() {
|
||||
//$href = '/mock-link';
|
||||
$href = '/mock-link';
|
||||
$text = 'Mock Text';
|
||||
$icon = 'mock-icon';
|
||||
$accessKeyHint = 'sample-accesskey';
|
||||
|
@ -45,7 +45,7 @@ class CitizenComponentLinkTest extends MediaWikiUnitTestCase {
|
|||
// Assert the expected values
|
||||
$this->assertEquals( $icon, $actual['icon'] );
|
||||
$this->assertEquals( $text, $actual['text'] );
|
||||
//$this->assertEquals( $href, $actual['href'] );
|
||||
$this->assertEquals( $href, $actual['href'] );
|
||||
|
||||
// New assertions for HTML attributes
|
||||
$expectedTitle = "tooltip-sample-accesskeyword-separatorbrackets";
|
||||
|
|
Loading…
Reference in a new issue