/var/www/cobraambalaj/vendor/league/glide/tests/Manipulators
NameSizeModeActions
Helpers/-0755rm
BackgroundTest.php12980644editdlrm
BlurTest.php14080644editdlrm
BorderTest.php40800644editdlrm
BrightnessTest.php14670644editdlrm
ContrastTest.php14470644editdlrm
CropTest.php28650644editdlrm
EncodeTest.php57770644editdlrm
FilterTest.php23750644editdlrm
FlipTest.php12920644editdlrm
GammaTest.php16110644editdlrm
OrientationTest.php19300644editdlrm
PixelateTest.php14650644editdlrm
SharpenTest.php14530644editdlrm
SizeTest.php106660644editdlrm
WatermarkTest.php98420644editdlrm
Edit: /var/www/cobraambalaj/vendor/league/glide/tests/Manipulators/OrientationTest.php (1930B)
manipulator = new Orientation(); } public function tearDown(): void { Mockery::close(); } public function testCreateInstance() { $this->assertInstanceOf('League\Glide\Manipulators\Orientation', $this->manipulator); } public function testRun() { $image = Mockery::mock('Intervention\Image\Image', function ($mock) { $mock->shouldReceive('orientate')->andReturn($mock)->once(); $mock->shouldReceive('rotate')->andReturn($mock)->with('90')->once(); }); $this->assertInstanceOf( 'Intervention\Image\Image', $this->manipulator->setParams(['or' => 'auto'])->run($image) ); $this->assertInstanceOf( 'Intervention\Image\Image', $this->manipulator->setParams(['or' => '90'])->run($image) ); } public function testGetOrientation() { $this->assertSame('auto', $this->manipulator->setParams(['or' => 'auto'])->getOrientation()); $this->assertSame('0', $this->manipulator->setParams(['or' => '0'])->getOrientation()); $this->assertSame('90', $this->manipulator->setParams(['or' => '90'])->getOrientation()); $this->assertSame('180', $this->manipulator->setParams(['or' => '180'])->getOrientation()); $this->assertSame('270', $this->manipulator->setParams(['or' => '270'])->getOrientation()); $this->assertSame('auto', $this->manipulator->setParams(['or' => null])->getOrientation()); $this->assertSame('auto', $this->manipulator->setParams(['or' => '1'])->getOrientation()); $this->assertSame('auto', $this->manipulator->setParams(['or' => '45'])->getOrientation()); } }