public function ImageEffectsTestBase::assertColorsAreEqual in Image Effects 8
Same name and namespace in other branches
- 8.3 tests/src/Functional/ImageEffectsTestBase.php \Drupal\Tests\image_effects\Functional\ImageEffectsTestBase::assertColorsAreEqual()
- 8.2 tests/src/Functional/ImageEffectsTestBase.php \Drupal\Tests\image_effects\Functional\ImageEffectsTestBase::assertColorsAreEqual()
Assert two colors are equal by RGBA.
11 calls to ImageEffectsTestBase::assertColorsAreEqual()
- BackgroundTest::testBackgroundEffect in tests/
src/ Functional/ Effect/ BackgroundTest.php - Background effect test.
- BrightnessTest::testBrightnessEffect in tests/
src/ Functional/ Effect/ BrightnessTest.php - Brightness effect test.
- ColorShiftTest::testColorShiftEffect in tests/
src/ Functional/ Effect/ ColorShiftTest.php - Color Shift effect test.
- GaussianBlurTest::testGaussianBlurEffect in tests/
src/ Functional/ Effect/ GaussianBlurTest.php - Gaussian blur effect test.
- InvertTest::testInvertEffect in tests/
src/ Functional/ Effect/ InvertTest.php - Invert effect test.
File
- tests/
src/ Functional/ ImageEffectsTestBase.php, line 256
Class
- ImageEffectsTestBase
- Base test class for image_effects tests.
Namespace
Drupal\Tests\image_effects\FunctionalCode
public function assertColorsAreEqual(array $actual, array $expected) {
$this
->assertColorsAreClose($actual, $expected, 0);
}