File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
app/code/Magento/Cms/Test/Unit/Block/Widget/Page Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ public function testGetTitle()
83
83
84
84
public function testGetTitleByPageId ()
85
85
{
86
- $ page_id = 1 ;
86
+ $ pageId = 1 ;
87
87
$ title = 'Title by page id ' ;
88
88
$ this ->mockResourcePage ->expects ($ this ->once ())
89
89
->method ('getCmsPageTitleById ' )
90
- ->with ($ page_id )
90
+ ->with ($ pageId )
91
91
->willReturn ($ title );
92
- $ this ->linkElement ->setData ('page_id ' , $ page_id );
92
+ $ this ->linkElement ->setData ('page_id ' , $ pageId );
93
93
$ this ->assertEquals ($ title , $ this ->linkElement ->getTitle ());
94
94
}
95
95
@@ -139,18 +139,18 @@ public function testGetLabelByHref()
139
139
140
140
public function testGetLabelByPageId ()
141
141
{
142
- $ page_id = 1 ;
142
+ $ pageId = 1 ;
143
143
$ label = 'Label by page id ' ;
144
144
$ this ->mockResourcePage ->expects ($ this ->once ())
145
145
->method ('getCmsPageTitleById ' )
146
- ->with ($ page_id )
146
+ ->with ($ pageId )
147
147
->willReturn ($ label );
148
- $ this ->linkElement ->setData ('page_id ' , $ page_id );
148
+ $ this ->linkElement ->setData ('page_id ' , $ pageId );
149
149
$ this ->assertEquals ($ label , $ this ->linkElement ->getLabel ());
150
150
}
151
151
152
152
public function testGetLabelEmpty ()
153
153
{
154
154
$ this ->assertEmpty ($ this ->linkElement ->getLabel ());
155
155
}
156
- }
156
+ }
You can’t perform that action at this time.
0 commit comments