Skip to content

Commit b7bb8ce

Browse files
author
Bohdan Korablov
committed
MAGETWO-37720: Cover Tango modules w. unit tests S2 (+0.7% from current 13.6%)
1 parent 4716835 commit b7bb8ce

File tree

1 file changed

+7
-7
lines changed
  • app/code/Magento/Cms/Test/Unit/Block/Widget/Page

1 file changed

+7
-7
lines changed

app/code/Magento/Cms/Test/Unit/Block/Widget/Page/LinkTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ public function testGetTitle()
8383

8484
public function testGetTitleByPageId()
8585
{
86-
$page_id = 1;
86+
$pageId = 1;
8787
$title = 'Title by page id';
8888
$this->mockResourcePage->expects($this->once())
8989
->method('getCmsPageTitleById')
90-
->with($page_id)
90+
->with($pageId)
9191
->willReturn($title);
92-
$this->linkElement->setData('page_id', $page_id);
92+
$this->linkElement->setData('page_id', $pageId);
9393
$this->assertEquals($title, $this->linkElement->getTitle());
9494
}
9595

@@ -139,18 +139,18 @@ public function testGetLabelByHref()
139139

140140
public function testGetLabelByPageId()
141141
{
142-
$page_id = 1;
142+
$pageId = 1;
143143
$label = 'Label by page id';
144144
$this->mockResourcePage->expects($this->once())
145145
->method('getCmsPageTitleById')
146-
->with($page_id)
146+
->with($pageId)
147147
->willReturn($label);
148-
$this->linkElement->setData('page_id', $page_id);
148+
$this->linkElement->setData('page_id', $pageId);
149149
$this->assertEquals($label, $this->linkElement->getLabel());
150150
}
151151

152152
public function testGetLabelEmpty()
153153
{
154154
$this->assertEmpty($this->linkElement->getLabel());
155155
}
156-
}
156+
}

0 commit comments

Comments
 (0)