diff --git a/tests/FieldTest.php b/tests/FieldTest.php index 724675c..3d883b1 100644 --- a/tests/FieldTest.php +++ b/tests/FieldTest.php @@ -306,8 +306,8 @@ public function can_get_create_picture_elements() $this->assertEquals(<<<'PICTURE' - + Some alt text with " @@ -386,8 +386,8 @@ public function can_get_create_picture_element_with_custom_domains() $this->assertEquals(<<<'PICTURE' - + Some alt text with " @@ -402,7 +402,7 @@ public function can_create_img_srcset() $field = new HeroImage($this->getFieldContents('hero'), null); $this->assertEquals(<<<'SRCSET' -Some alt text with " +Some alt text with " SRCSET , str_replace("\t", '', $field->srcset('Some alt text with "'))); } @@ -416,7 +416,7 @@ public function can_create_img_srcset_with_custom_domains() $field = new HeroImage($this->getFieldContents('hero'), null); $this->assertEquals(<<<'SRCSET' -Some alt text with " +Some alt text with " SRCSET , str_replace("\t", '', $field->srcset('Some alt text with "'))); } diff --git a/tests/Fixtures/Fields/HeroImage.php b/tests/Fixtures/Fields/HeroImage.php index 3ddca30..2141600 100644 --- a/tests/Fixtures/Fields/HeroImage.php +++ b/tests/Fixtures/Fields/HeroImage.php @@ -11,14 +11,14 @@ class HeroImage extends Image public function transformations() { $this->transformations = [ - 'mobile' => [ - 'src' => $this->transform()->resize(100, 120)->format('webp'), - 'media' => '(min-width: 600px)', - ], 'desktop' => [ 'src' => $this->transform()->resize(500, 400), 'media' => '(min-width: 1200px)', ], + 'mobile' => [ + 'src' => $this->transform()->resize(100, 120)->format('webp'), + 'media' => '(min-width: 600px)', + ], ]; } } \ No newline at end of file