Loading drupalci.yml 0 → 100644 +49 −0 Original line number Diff line number Diff line # This is the DrupalCI testbot build file. # Learn to make one for your own drupal.org project: # https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-testing build: assessment: validate_codebase: phplint: phpcs: # phpcs will use core's specified version of Coder. sniff-all-files: true halt-on-fail: true phpstan: halt-on-fail: true testing: # run_tests task is executed several times in order of performance speeds. # halt-on-fail can be set on the run_tests tasks in order to fail fast. # suppress-deprecations is false in order to be alerted to usages of # deprecated code. run_tests.phpunit: types: 'PHPUnit-Unit' testgroups: '--all' suppress-deprecations: false halt-on-fail: false run_tests.kernel: types: 'PHPUnit-Kernel' testgroups: '--all' suppress-deprecations: true halt-on-fail: false run_tests.simpletest: types: 'Simpletest' testgroups: '--all' suppress-deprecations: false halt-on-fail: false run_tests.functional: types: 'PHPUnit-Functional' testgroups: '--all' suppress-deprecations: false halt-on-fail: false # Functional JavaScript tests require a concurrency of 1 because there is # only one instance of PhantomJS on the testbot machine. run_tests.javascript: concurrency: 1 types: 'PHPUnit-FunctionalJavascript' testgroups: '--all' suppress-deprecations: false halt-on-fail: false # Run nightwatch testing. # @see https://www.drupal.org/project/drupal/issues/2869825 nightwatchjs: src/Plugin/Mail/SparkpostMail.php +0 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ namespace Drupal\sparkpost\Plugin\Mail; use Drupal\Core\Mail\MailFormatHelper; use Drupal\Core\Mail\MailInterface; use Drupal\Component\Utility\Html; use Drupal\sparkpost\ClientService; /** Loading Loading @@ -198,7 +197,6 @@ class SparkpostMail implements MailInterface { 'application/x-zip', ]; // @todo: Make this alterable. foreach ($valid_types as $vct) { if (strpos($file_type, $vct) !== FALSE) { return TRUE; Loading tests/src/FunctionalJavascript/AdminSettingsTest.php→tests/src/Functional/AdminSettingsTest.php +8 −3 Original line number Diff line number Diff line <?php namespace Drupal\Tests\sparkpost\FunctionalJavascript; namespace Drupal\Tests\sparkpost\Functional; use Drupal\FunctionalJavascriptTests\JavascriptTestBase; use Drupal\Tests\BrowserTestBase; /** * Test basic functionality. * * @group sparkpost */ class AdminSettingsTest extends JavascriptTestBase { class AdminSettingsTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'stark'; /** * {@inheritdoc} Loading tests/src/FunctionalJavascript/SubjectFilterTest.php→tests/src/Functional/SubjectFilterTest.php +8 −3 Original line number Diff line number Diff line <?php namespace Drupal\Tests\sparkpost\FunctionalJavascript; namespace Drupal\Tests\sparkpost\Functional; use Drupal\Core\Language\LanguageInterface; use Drupal\FunctionalJavascriptTests\JavascriptTestBase; use Drupal\Tests\BrowserTestBase; /** * Tests that we are not double escaping the subject. * * @group sparkpost */ class SubjectFilterTest extends JavascriptTestBase { class SubjectFilterTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'stark'; /** * {@inheritdoc} Loading Loading
drupalci.yml 0 → 100644 +49 −0 Original line number Diff line number Diff line # This is the DrupalCI testbot build file. # Learn to make one for your own drupal.org project: # https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-testing build: assessment: validate_codebase: phplint: phpcs: # phpcs will use core's specified version of Coder. sniff-all-files: true halt-on-fail: true phpstan: halt-on-fail: true testing: # run_tests task is executed several times in order of performance speeds. # halt-on-fail can be set on the run_tests tasks in order to fail fast. # suppress-deprecations is false in order to be alerted to usages of # deprecated code. run_tests.phpunit: types: 'PHPUnit-Unit' testgroups: '--all' suppress-deprecations: false halt-on-fail: false run_tests.kernel: types: 'PHPUnit-Kernel' testgroups: '--all' suppress-deprecations: true halt-on-fail: false run_tests.simpletest: types: 'Simpletest' testgroups: '--all' suppress-deprecations: false halt-on-fail: false run_tests.functional: types: 'PHPUnit-Functional' testgroups: '--all' suppress-deprecations: false halt-on-fail: false # Functional JavaScript tests require a concurrency of 1 because there is # only one instance of PhantomJS on the testbot machine. run_tests.javascript: concurrency: 1 types: 'PHPUnit-FunctionalJavascript' testgroups: '--all' suppress-deprecations: false halt-on-fail: false # Run nightwatch testing. # @see https://www.drupal.org/project/drupal/issues/2869825 nightwatchjs:
src/Plugin/Mail/SparkpostMail.php +0 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ namespace Drupal\sparkpost\Plugin\Mail; use Drupal\Core\Mail\MailFormatHelper; use Drupal\Core\Mail\MailInterface; use Drupal\Component\Utility\Html; use Drupal\sparkpost\ClientService; /** Loading Loading @@ -198,7 +197,6 @@ class SparkpostMail implements MailInterface { 'application/x-zip', ]; // @todo: Make this alterable. foreach ($valid_types as $vct) { if (strpos($file_type, $vct) !== FALSE) { return TRUE; Loading
tests/src/FunctionalJavascript/AdminSettingsTest.php→tests/src/Functional/AdminSettingsTest.php +8 −3 Original line number Diff line number Diff line <?php namespace Drupal\Tests\sparkpost\FunctionalJavascript; namespace Drupal\Tests\sparkpost\Functional; use Drupal\FunctionalJavascriptTests\JavascriptTestBase; use Drupal\Tests\BrowserTestBase; /** * Test basic functionality. * * @group sparkpost */ class AdminSettingsTest extends JavascriptTestBase { class AdminSettingsTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'stark'; /** * {@inheritdoc} Loading
tests/src/FunctionalJavascript/SubjectFilterTest.php→tests/src/Functional/SubjectFilterTest.php +8 −3 Original line number Diff line number Diff line <?php namespace Drupal\Tests\sparkpost\FunctionalJavascript; namespace Drupal\Tests\sparkpost\Functional; use Drupal\Core\Language\LanguageInterface; use Drupal\FunctionalJavascriptTests\JavascriptTestBase; use Drupal\Tests\BrowserTestBase; /** * Tests that we are not double escaping the subject. * * @group sparkpost */ class SubjectFilterTest extends JavascriptTestBase { class SubjectFilterTest extends BrowserTestBase { /** * {@inheritdoc} */ protected $defaultTheme = 'stark'; /** * {@inheritdoc} Loading