Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
link
Commits
9f052e88
Commit
9f052e88
authored
Apr 15, 2021
by
damienmckenna
Committed by
Damien McKenna
Apr 15, 2021
Browse files
Issue #3208869 by DamienMcKenna: Simplify tests by extending LinkBaseTestClass.
parent
141bdf2d
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.txt
View file @
9f052e88
...
...
@@ -19,6 +19,7 @@ By DamienMcKenna: Unnecessary syntax change broke PHP 5.3 compatibility.
#3178419 by DamienMcKenna: Simplify the theme functions.
#3208738 by jedihe, DamienMcKenna: Missing proper test_dependencies, testbot
ignoring some tests.
#3208869 by DamienMcKenna: Simplify tests by extending LinkBaseTestClass.
Link 7.x-1.7, 2019-11-14
...
...
tests/LinkFieldAttributesTest.test
View file @
9f052e88
...
...
@@ -8,7 +8,7 @@
/**
* Field attributes test.
*/
class
LinkFieldAttributesTest
extends
DrupalWeb
TestCas
e
{
class
LinkFieldAttributesTest
extends
LinkBase
TestC
l
as
s
{
/**
* Track a zebra value, used to alternate the output.
...
...
@@ -17,22 +17,6 @@ class LinkFieldAttributesTest extends DrupalWebTestCase {
*/
private
$zebra
;
/**
* List of permissions to test.
*
* @var array
*/
protected
$permissions
=
array
(
'access content'
,
'administer content types'
,
'administer nodes'
,
'administer filters'
,
'access comments'
,
'post comments'
,
'skip comment approval'
,
'access administration pages'
,
);
/**
* Get Info.
*/
...
...
@@ -48,18 +32,9 @@ class LinkFieldAttributesTest extends DrupalWebTestCase {
* {@inheritdoc}
*/
public
function
setUp
(
array
$modules
=
array
())
{
$modules
[]
=
'field_ui'
;
$modules
[]
=
'link'
;
parent
::
setUp
(
$modules
);
$this
->
zebra
=
0
;
// Create and login user.
$this
->
web_user
=
$this
->
drupalCreateUser
(
array
(
'administer content types'
,
'administer fields'
,
));
$this
->
drupalLogin
(
$this
->
web_user
);
}
/**
...
...
tests/LinkFieldCrudTest.test
View file @
9f052e88
...
...
@@ -8,7 +8,7 @@
/**
* Testing that users can not input bad URLs or labels.
*/
class
LinkFieldCrudTest
extends
DrupalWeb
Test
c
as
e
{
class
LinkFieldCrudTest
extends
LinkBase
Test
Cl
as
s
{
/**
* Link supposed to be good.
...
...
tests/LinkValidationApiTest.test
View file @
9f052e88
...
...
@@ -10,7 +10,7 @@
*
* Validation is guided by the rules in http://tools.ietf.org/html/rfc1738.
*/
class
LinkValidationApiTest
extends
DrupalWeb
TestCas
e
{
class
LinkValidationApiTest
extends
LinkBase
TestC
l
as
s
{
/**
* Get Info.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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