Source of file ClamAVCMSTest.php
Size: 1,056 Bytes - Last Modified: 2021-12-23T10:21:01+00:00
/var/www/docs.ssmods.com/process/src/tests/ClamAVCMSTest.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | <?php namespace Symbiote\SteamedClams; use SilverStripe\Dev\FunctionalTest; use Symbiote\SteamedClams\Admin\ClamAVAdmin; use SilverStripe\Reports\Report; use Symbiote\SteamedClams\Reports\ClamAVScanReport; /** * Check various CMS areas of the ClamAV module and ensure it's not * breaking via unset variables, typos, etc. */ class ClamAVCMSTest extends FunctionalTest { protected static $disable_themes = true; protected static $fixture_file = 'ClamAVCMSTest.yml'; /** * */ public function testModelAdmin() { $this->logInAs('admin'); // Test ModelAdmin listing $controller = singleton(ClamAVAdmin::class); $response = $this->get($controller->Link()); } /** * */ public function testClamAVReport() { if (!class_exists(Report::class)) { return; } $this->logInAs('admin'); // Test Report page $controller = singleton(ClamAVScanReport::class); $response = $this->get($controller->getLink()); } } |