diff --git a/.cspell-project-words.txt b/.cspell-project-words.txt new file mode 100644 index 0000000000000000000000000000000000000000..ed6e08c4a74fb240f8333693ccba9939d3ff7a74 --- /dev/null +++ b/.cspell-project-words.txt @@ -0,0 +1,44 @@ +Abhishek +abhishek +Anand +anand +bebo +BUTTONTYPE +Callesi +callesi +Chicklet +Chicklets +Colorstr +donotcopy +fblike +Formlinks +getcomponent +handlerd +hashaddress +hcount +mtitle +Naveen +naveenvalecha +neworzero +newuser +odjs +onhover +Pinterest +pinterest +sharelinks +sharethisbuttonclass +sharethisform +sharethisnodes +sharethispicker +sharethispickerexternal +sharethispickerexternalbuttons +sharethispickerexternalbuttonsws +stbc +stcommon +stcp +stlib +stlight +Valecha +vcount +Webform +webform \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..68176cc45a49772e411caf4a8c6e520a30093c7a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,30 @@ +include: + - project: $_GITLAB_TEMPLATES_REPO + ref: $_GITLAB_TEMPLATES_REF + file: + - '/includes/include.drupalci.main.yml' + - '/includes/include.drupalci.variables.yml' + - '/includes/include.drupalci.workflows.yml' +variables: + OPT_IN_TEST_PREVIOUS_MAJOR: 1 + OPT_IN_TEST_NEXT_MINOR: 1 + OPT_IN_TEST_NEXT_MAJOR: 0 + RUN_JOB_UPGRADE_STATUS: 0 +cspell: + allow_failure: false +phpcs: + allow_failure: false +phpstan: + allow_failure: false +phpstan (next minor): + allow_failure: true +phpstan (next major): + allow_failure: false +phpunit (previous major): + allow_failure: false +phpunit (next minor): + allow_failure: false +phpunit (next major): + allow_failure: false +upgrade status: + allow_failure: false diff --git a/composer.json b/composer.json index 47fa0ecaab4d61f8e3ce822410fc06e25959f1b2..86d391500bfbf475a2ae8b6be5b1155a8911c2bd 100644 --- a/composer.json +++ b/composer.json @@ -9,8 +9,5 @@ "support": { "issues": "https://www.drupal.org/project/issues/sharethis", "source": "https://git.drupalcode.org/project/sharethis" - }, - "require": { - "drupal/core": "^9.4 || ^10.0" } } diff --git a/sharethis.info.yml b/sharethis.info.yml index ae1ef40d06410cd4d7eba82ae4c06377699e4c18..73cd9b8aaf5f7a57df360e1692f25397e8699ade 100644 --- a/sharethis.info.yml +++ b/sharethis.info.yml @@ -1,5 +1,5 @@ name: ShareThis description: 'Add the <a href="http://www.sharethis.com/">ShareThis</a> widget to nodes on your site.' -core_version_requirement: ^9.4 || ^10.0 +core_version_requirement: ^10.1 || ^11 type: module configure: sharethis.configuration_form diff --git a/tests/src/Functional/ShareThisTest.php b/tests/src/Functional/ShareThisTest.php index fbc5a1900ad4bf4104aa737cc5fbbe58ba4521b7..cc36b3d519f514c2a19994a09c0dcb3159642d60 100644 --- a/tests/src/Functional/ShareThisTest.php +++ b/tests/src/Functional/ShareThisTest.php @@ -2,6 +2,7 @@ namespace Drupal\Tests\sharethis\Functional; +use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\Tests\BrowserTestBase; /** @@ -11,6 +12,7 @@ use Drupal\Tests\BrowserTestBase; */ class ShareThisTest extends BrowserTestBase { + use StringTranslationTrait; /** * {@inheritdoc} diff --git a/tests/src/Functional/SharethisBlockTest.php b/tests/src/Functional/SharethisBlockTest.php index 88c880566a185eb78c61d198b20035a88bdd3ad1..61ce8bfa1748f8e8c4bd19413e9aca1cea0c977c 100644 --- a/tests/src/Functional/SharethisBlockTest.php +++ b/tests/src/Functional/SharethisBlockTest.php @@ -2,6 +2,7 @@ namespace Drupal\Tests\sharethis\Functional; +use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\Tests\node\Functional\NodeTestBase; /** @@ -11,6 +12,8 @@ use Drupal\Tests\node\Functional\NodeTestBase; */ class SharethisBlockTest extends NodeTestBase { + use StringTranslationTrait; + /** * {@inheritdoc} */ diff --git a/tests/src/Functional/SharethisConfigFormTest.php b/tests/src/Functional/SharethisConfigFormTest.php index 525f953bb9c7b825dd7f8e6079d0776e59ffff01..6913258533f0bd4586a2ff6b64102383fe471dc6 100644 --- a/tests/src/Functional/SharethisConfigFormTest.php +++ b/tests/src/Functional/SharethisConfigFormTest.php @@ -2,6 +2,7 @@ namespace Drupal\Tests\sharethis\Functional; +use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\Tests\node\Functional\NodeTestBase; /** @@ -11,6 +12,7 @@ use Drupal\Tests\node\Functional\NodeTestBase; */ class SharethisConfigFormTest extends NodeTestBase { + use StringTranslationTrait; /** * {@inheritdoc}