Skip to content
Permalink
Browse files

Add some asserts to shut up phpunit 'risky' warnings

  • Loading branch information...
flack committed Jul 26, 2019
1 parent c7ef416 commit cb4006a1006e94106bf40182c932904551471e93
Showing with 5 additions and 0 deletions.
  1. +1 −0 test/midcom/helper/_componentloaderTest.php
  2. +4 −0 test/midcom/helper/imagefilterTest.php
@@ -28,6 +28,7 @@ public function test_load()
$componentloader = new midcom_helper__componentloader(); $componentloader = new midcom_helper__componentloader();
$componentloader->load_all_manifests(); $componentloader->load_all_manifests();
$componentloader->load('org.openpsa.user'); $componentloader->load('org.openpsa.user');
$this->assertTrue($componentloader->is_loaded('org.openpsa.user'));
} }
public function test_load_graceful() public function test_load_graceful()
@@ -102,6 +102,7 @@ public function testProcess_Chain()
{ {
$filter = $this->_get_prepared_filter(); $filter = $this->_get_prepared_filter();
$filter->process_chain("resize(5,5)"); $filter->process_chain("resize(5,5)");
$this->assertFileExists($filter->get_file());
} }
/** /**
@@ -117,6 +118,7 @@ public function testGamma()
{ {
$filter = $this->_get_prepared_filter(); $filter = $this->_get_prepared_filter();
$filter->gamma(0/100); $filter->gamma(0/100);
$this->assertFileExists($filter->get_file());
} }
public function testResize() public function testResize()
@@ -139,12 +141,14 @@ public function testRotate()
{ {
$filter = $this->_get_prepared_filter(); $filter = $this->_get_prepared_filter();
$filter->rotate(45); $filter->rotate(45);
$this->assertFileExists($filter->get_file());
} }
public function testExifRotate() public function testExifRotate()
{ {
$filter = $this->_get_prepared_filter(); $filter = $this->_get_prepared_filter();
$filter->exifrotate(); $filter->exifrotate();
$this->assertFileExists($filter->get_file());
} }
public function testCrop() public function testCrop()

0 comments on commit cb4006a

Please sign in to comment.
You can’t perform that action at this time.