Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OptimizationChain #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

OptimizationChain #7

wants to merge 6 commits into from

Conversation

jonybecker
Copy link
Contributor

Add custom optimizer configurations and build a new default chain

@jonybecker jonybecker requested a review from a team May 7, 2021 20:56
docker-compose.cli.yml Outdated Show resolved Hide resolved
src/DefaultImageOptimizer.php Outdated Show resolved Hide resolved
src/DefaultImageOptimizer.php Outdated Show resolved Hide resolved
src/Optimizers/Factories/Jpegoptim.php Outdated Show resolved Hide resolved
src/Optimizers/OptimizerListService.php Outdated Show resolved Hide resolved
tests/Optimizers/OptimizerListServiceTest.php Outdated Show resolved Hide resolved
@jonybecker jonybecker requested review from ecastro98, juanmanuel-perez and a team May 14, 2021 22:18
ecastro98
ecastro98 previously approved these changes May 17, 2021
src/DefaultImageOptimizer.php Outdated Show resolved Hide resolved
src/Optimizers/OptimizerListService.php Outdated Show resolved Hide resolved
tests/Optimizers/JpgOptimizerTest.php Outdated Show resolved Hide resolved
tests/Optimizers/JpgOptimizerTest.php Outdated Show resolved Hide resolved
tests/Optimizers/JpgOptimizerTest.php Outdated Show resolved Hide resolved
tests/Optimizers/JpgOptimizerTest.php Show resolved Hide resolved
src/DefaultImageOptimizer.php Outdated Show resolved Hide resolved
tests/Optimizers/JpgOptimizerTest.php Outdated Show resolved Hide resolved
tests/Optimizers/JpgOptimizerTest.php Outdated Show resolved Hide resolved
tests/Optimizers/JpgOptimizerTest.php Outdated Show resolved Hide resolved
tests/Optimizers/JpgOptimizerTest.php Outdated Show resolved Hide resolved
tests/Optimizers/JpgOptimizerTest.php Outdated Show resolved Hide resolved
->once()
->andReturn($optimizerChainMock);

$command = sprintf('convert %s -sampling-factor 4:2:0 -strip -quality 65 %s', $expectedPathToOutput, $expectedPathToOutput);

$exec = $this->getFunctionMock(__NAMESPACE__, 'shell_exec');
$exec
->expects($this->once())
$exec->expects($this->once())
Copy link
Contributor

@juanmanuel-perez juanmanuel-perez Jun 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aca estoy medio mareado con el core. Las validaciones de cantidad de llamados funcan sin el mockery close del tear down? O habria que agregarlo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Es un buen punto, pruebo y te aviso.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants