Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2bootstrap
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
yii2bootstrap
Commits
91607a22
Commit
91607a22
authored
Jul 11, 2016
by
Nikolas Grottendieck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test cases updated to cover enhanced Tab Widget Dropdown items
See #113
parent
e4a3d351
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
TabsTest.php
tests/TabsTest.php
+14
-2
No files found.
tests/TabsTest.php
View file @
91607a22
...
@@ -39,7 +39,13 @@ class TabsTest extends TestCase
...
@@ -39,7 +39,13 @@ class TabsTest extends TestCase
]
]
],
],
[
[
'label'
=>
$extAnchor
=
'External link'
,
'url'
=>
$extUrl
=
[
'//other/route'
],
'label'
=>
$extAnchor1
=
'External link'
,
'url'
=>
$extUrl1
=
[
'//other/route'
],
],
[
'label'
=>
'Dropdown3'
,
'items'
=>
[
[
'label'
=>
$extAnchor2
=
'External Dropdown Link'
,
'url'
=>
$extUrl2
=
[
'//other/dropdown/route'
]],
]
],
],
]
]
]);
]);
...
@@ -63,13 +69,16 @@ class TabsTest extends TestCase
...
@@ -63,13 +69,16 @@ class TabsTest extends TestCase
"#
$page4
"
,
// Page4
"#
$page4
"
,
// Page4
"#
$page5
"
,
// Page5
"#
$page5
"
,
// Page5
'w3'
,
// Dropdown3
// containers
// containers
"id=
\"
$page1
\"
"
,
"id=
\"
$page1
\"
"
,
"id=
\"
$page2
\"
"
,
"id=
\"
$page2
\"
"
,
"id=
\"
$page3
\"
"
,
"id=
\"
$page3
\"
"
,
"id=
\"
$page4
\"
"
,
"id=
\"
$page4
\"
"
,
"id=
\"
$page5
\"
"
,
"id=
\"
$page5
\"
"
,
Html
::
a
(
$extAnchor
,
$extUrl
),
Html
::
a
(
$extAnchor1
,
$extUrl1
),
Html
::
a
(
$extAnchor2
,
$extUrl2
,
[
'tabindex'
=>
-
1
]),
];
];
foreach
(
$shouldContain
as
$string
)
{
foreach
(
$shouldContain
as
$string
)
{
...
@@ -96,6 +105,8 @@ class TabsTest extends TestCase
...
@@ -96,6 +105,8 @@ class TabsTest extends TestCase
[
'label'
=>
'Page2'
,
'content'
=>
'Page2'
],
[
'label'
=>
'Page2'
,
'content'
=>
'Page2'
],
[
'label'
=>
'InvisibleItem'
,
'content'
=>
'Invisible Item Content'
,
'visible'
=>
false
],
[
'label'
=>
'InvisibleItem'
,
'content'
=>
'Invisible Item Content'
,
'visible'
=>
false
],
[
'label'
=>
'Page3'
,
'content'
=>
'Page3'
],
[
'label'
=>
'Page3'
,
'content'
=>
'Page3'
],
[
'label'
=>
'External Link'
,
'url'
=>
[
'//other/dropdown/route'
]],
[
'label'
=>
'Invisible External Link'
,
'url'
=>
[
'//other/dropdown/route'
],
'visible'
=>
false
],
]
]
],
],
]
]
...
@@ -105,6 +116,7 @@ class TabsTest extends TestCase
...
@@ -105,6 +116,7 @@ class TabsTest extends TestCase
$this
->
assertNotContains
(
'Invisible Page Content'
,
$html
);
$this
->
assertNotContains
(
'Invisible Page Content'
,
$html
);
$this
->
assertNotContains
(
'InvisibleItem'
,
$html
);
$this
->
assertNotContains
(
'InvisibleItem'
,
$html
);
$this
->
assertNotContains
(
'Invisible Item Content'
,
$html
);
$this
->
assertNotContains
(
'Invisible Item Content'
,
$html
);
$this
->
assertNotContains
(
'Invisible External Link'
,
$html
);
}
}
public
function
testItem
()
public
function
testItem
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment