diff --git a/tests/Pslayers/PslayersTest.php b/tests/Pslayers/PslayersTest.php index 736e366..bcd16b2 100644 --- a/tests/Pslayers/PslayersTest.php +++ b/tests/Pslayers/PslayersTest.php @@ -92,8 +92,6 @@ public function testValidation() public function testMasterRender() { - $output = '/tmp/tmp.png'; - $width = 830; $height = 360; @@ -101,7 +99,7 @@ public function testMasterRender() 'id' => 11, 'width' => $width, 'height' => $height, - 'outputPath' => $output, + 'outputPath' => '/tmp/testing.png', ]; $instance = new Pslayers($config); @@ -276,9 +274,9 @@ public function testMasterRender() ]); $instance->addLayer($imageLayer, 7); - $instance->render(); - $this->assertFileExists(__DIR__ . '/image/test.png'); + + $this->assertFileExists('/tmp/testing.png'); $this->assertFileExists('/tmp/tmp.png'); }