Skip to content

Commit

Permalink
Master render test
Browse files Browse the repository at this point in the history
  • Loading branch information
darrynten committed Aug 17, 2018
1 parent 3371890 commit 8e77131
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/Pslayers/PslayersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,14 @@ public function testValidation()

public function testMasterRender()
{
$output = '/tmp/tmp.png';

$width = 830;
$height = 360;

$config = [
'id' => 11,
'width' => $width,
'height' => $height,
'outputPath' => $output,
'outputPath' => '/tmp/testing.png',
];

$instance = new Pslayers($config);
Expand Down Expand Up @@ -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');
}

Expand Down

0 comments on commit 8e77131

Please sign in to comment.