Commit 9f052e88 authored by damienmckenna's avatar damienmckenna Committed by Damien McKenna
Browse files

Issue #3208869 by DamienMcKenna: Simplify tests by extending LinkBaseTestClass.

parent 141bdf2d
......@@ -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
......
......@@ -8,7 +8,7 @@
/**
* Field attributes test.
*/
class LinkFieldAttributesTest extends DrupalWebTestCase {
class LinkFieldAttributesTest extends LinkBaseTestClass {
/**
* 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);
}
/**
......
......@@ -8,7 +8,7 @@
/**
* Testing that users can not input bad URLs or labels.
*/
class LinkFieldCrudTest extends DrupalWebTestcase {
class LinkFieldCrudTest extends LinkBaseTestClass {
/**
* Link supposed to be good.
......
......@@ -10,7 +10,7 @@
*
* Validation is guided by the rules in http://tools.ietf.org/html/rfc1738.
*/
class LinkValidationApiTest extends DrupalWebTestCase {
class LinkValidationApiTest extends LinkBaseTestClass {
/**
* Get Info.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment