From 8e77131e3ef754c1d9032cc7e421b03275938bea Mon Sep 17 00:00:00 2001 From: Darryn Ten Date: Fri, 17 Aug 2018 13:51:03 +0200 Subject: [PATCH] Master render test --- tests/Pslayers/PslayersTest.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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'); }