Skip to content
Snippets Groups Projects
Commit f8cc6022 authored by mondrake's avatar mondrake
Browse files

Merge branch '3530105-test-with-11.2.0-rc2' into '4.1.x'

Test 11.2.0-rc2

See merge request !71
parents 0389b91a 22da9eca
No related branches found
No related tags found
No related merge requests found
Pipeline #525579 failed
...@@ -50,13 +50,14 @@ include: ...@@ -50,13 +50,14 @@ include:
variables: variables:
SKIP_CSPELL: "1" SKIP_CSPELL: "1"
_PHPUNIT_CONCURRENT: '1' _PHPUNIT_CONCURRENT: '1'
_PHPUNIT_EXTRA: '--debug-discovery'
# _PHPUNIT_EXTRA: '-c $CI_PROJECT_DIR/$_WEB_ROOT/core --testdox --colors=always' # _PHPUNIT_EXTRA: '-c $CI_PROJECT_DIR/$_WEB_ROOT/core --testdox --colors=always'
# SKIP_PHPUNIT: '0' # SKIP_PHPUNIT: '0'
BROWSERTEST_OUTPUT_VERBOSE: 'false' BROWSERTEST_OUTPUT_VERBOSE: 'false'
OPT_IN_TEST_PREVIOUS_MAJOR: '0' OPT_IN_TEST_PREVIOUS_MAJOR: '0'
OPT_IN_TEST_PREVIOUS_MINOR: '0' OPT_IN_TEST_PREVIOUS_MINOR: '1'
OPT_IN_TEST_NEXT_MINOR: '1' OPT_IN_TEST_NEXT_MINOR: '1'
OPT_IN_TEST_NEXT_MAJOR: '0' OPT_IN_TEST_NEXT_MAJOR: '1'
phpunit: phpunit:
extends: .phpunit-base extends: .phpunit-base
......
...@@ -5,12 +5,12 @@ declare(strict_types=1); ...@@ -5,12 +5,12 @@ declare(strict_types=1);
namespace Drupal\Tests\image_effects\Unit; namespace Drupal\Tests\image_effects\Unit;
use Drupal\image_effects\Plugin\ImageToolkit\Operation\ArgumentsTypeValidator; use Drupal\image_effects\Plugin\ImageToolkit\Operation\ArgumentsTypeValidator;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
/** #[CoversClass(ArgumentsTypeValidator::class)]
* @coversDefaultClass \Drupal\image_effects\Plugin\ImageToolkit\Operation\ArgumentsTypeValidator #[Group('image_effects')]
* @group image_effects
*/
class ArgumentsTypeValidatorTest extends TestCase { class ArgumentsTypeValidatorTest extends TestCase {
/** /**
......
...@@ -5,15 +5,16 @@ declare(strict_types=1); ...@@ -5,15 +5,16 @@ declare(strict_types=1);
namespace Drupal\Tests\image_effects\Unit; namespace Drupal\Tests\image_effects\Unit;
use Drupal\image_effects\Component\ColorUtility; use Drupal\image_effects\Component\ColorUtility;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
/** /**
* Tests the color utility helper methods. * Tests the color utility helper methods.
*
* @coversDefaultClass \Drupal\image_effects\Component\ColorUtility
*
* @group image_effects
*/ */
#[CoversClass(ColorUtility::class)]
#[Group('image_effects')]
class ColorUtilityTest extends TestCase { class ColorUtilityTest extends TestCase {
/** /**
...@@ -23,9 +24,8 @@ class ColorUtilityTest extends TestCase { ...@@ -23,9 +24,8 @@ class ColorUtilityTest extends TestCase {
* The expected result of validation. * The expected result of validation.
* @param string $value * @param string $value
* The hex color value. * The hex color value.
*
* @dataProvider providerTestValidateRgba
*/ */
#[DataProvider('providerTestValidateRgba')]
public function testValidateRgba(bool $expected, string $value): void { public function testValidateRgba(bool $expected, string $value): void {
$this->assertSame($expected, ColorUtility::validateRgba($value)); $this->assertSame($expected, ColorUtility::validateRgba($value));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment