Skip to content

Commit

Permalink
Update ConversionTest.php
Browse files Browse the repository at this point in the history
add correct tests
  • Loading branch information
aSeriousDeveloper authored Dec 9, 2024
1 parent edde0e5 commit 45dcb63
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Conversions/ConversionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@
expect($this->conversion->getManipulations()->getManipulationArgument('format'))->toEqual(['png']);
});

it('will set conversions to responsive', function () {
$this->conversion->withResponsiveImages();

expect($this->conversion->shouldGenerateResponsiveImages())->toBeTrue();
});

it('will set conversions to not be responsive', function () {
$this->conversion->withResponsiveImages()->withResponsiveImages(false);

expect($this->conversion->shouldGenerateResponsiveImages())->toBeFalse();
});

it('will be performed on the given collection names', function () {
$this->conversion->performOnCollections('images', 'downloads');
expect($this->conversion->shouldBePerformedOn('images'))->toBeTrue();
Expand Down

0 comments on commit 45dcb63

Please sign in to comment.