Skip to content
Snippets Groups Projects
Commit 6efe2168 authored by Julian Pustkuchen's avatar Julian Pustkuchen Committed by Vladimir Roudakov
Browse files

Issue #3481730: Fix phpcs, cspell and phpunit

parent 8973bb70
No related branches found
No related tags found
1 merge request!21Add _cspell_unrecognized_words.txt for maintainer names
Pipeline #317635 passed with warnings with stages
in 3 minutes and 25 seconds
Canil
davisben
deviantintegral
jjeff
kevinquillen
Neslee
Quillen
Shetty
Shreya
Wichmann
ziomizar
......@@ -24,4 +24,4 @@ phpunit (next minor):
phpunit (next major):
allow_failure: false
upgrade status:
allow_failure: false
allow_failure: true
......@@ -2,8 +2,8 @@
namespace Drupal\weight\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FormatterBase;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FormatterBase;
/**
* Plugin implementation of the 'weight' formatter.
......
......@@ -4,8 +4,8 @@ namespace Drupal\weight\Plugin\Field\FieldType;
use Drupal\Core\Field\FieldItemBase;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\TypedData\DataDefinition;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\TypedData\DataDefinition;
/**
* Defines the 'weight' field type.
......
......@@ -5,10 +5,10 @@ namespace Drupal\Tests\weight\FunctionalJavascript;
use Behat\Mink\Exception\ExpectationException;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\Tests\field_ui\Traits\FieldUiTestTrait;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;
use Drupal\views\Tests\ViewTestData;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\node\Entity\Node;
use Drupal\views\Tests\ViewTestData;
/**
* Test basic functionality of weight.
......@@ -175,8 +175,8 @@ class WeightTest extends WebDriverTestBase {
// @todo Test also the reverse, 'Article 2' over 'Article 1', when
// https://www.drupal.org/node/2769825 is fixed.
// @see https://www.drupal.org/node/2769825
$dragged = $this->xpath("//tr[@class='draggable'][1]//a[@class='tabledrag-handle']")[0];
$target = $this->xpath("//tr[@class='draggable'][2]//a[@class='tabledrag-handle']")[0];
$dragged = $this->xpath("//tr[contains(@class, 'draggable')][1]//a[contains(@class, 'tabledrag-handle')]")[0];
$target = $this->xpath("//tr[contains(@class, 'draggable')][2]//a[contains(@class, 'tabledrag-handle')]")[0];
$dragged->dragTo($target);
// Give javascript some time to manipulate the DOM.
......@@ -253,8 +253,8 @@ class WeightTest extends WebDriverTestBase {
// @todo Test also the reverse, 'Article 2' over 'Article 1', when
// https://www.drupal.org/node/2769825 is fixed.
// @see https://www.drupal.org/node/2769825
$dragged = $this->xpath("//tr[@class='draggable'][1]//a[@class='tabledrag-handle']")[0];
$target = $this->xpath("//tr[@class='draggable'][2]//a[@class='tabledrag-handle']")[0];
$dragged = $this->xpath("//tr[contains(@class, 'draggable')][1]//a[contains(@class, 'tabledrag-handle')]")[0];
$target = $this->xpath("//tr[contains(@class, 'draggable')][2]//a[contains(@class, 'tabledrag-handle')]")[0];
$dragged->dragTo($target);
// Give javascript some time to manipulate the DOM.
......
......@@ -4,6 +4,7 @@
* @file
* Defines weight field types.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
......@@ -33,6 +34,7 @@ function weight_help($route_name, RouteMatchInterface $route_match) {
default:
}
}
/**
* Implements hook_preprocess_views_view_table().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment