Source of file AnalysisTest.php
Size: 0,749 Bytes - Last Modified: 2021-12-23T10:11:23+00:00
/var/www/docs.ssmods.com/process/src/tests/Analysis/AnalysisTest.php
123456789101112131415161718192021222324252627 | <?php namespace QuinnInteractive\Seo\Tests\Analysis; use SilverStripe\Dev\FunctionalTest; class AnalysisTest extends FunctionalTest { protected static $fixture_file = '../Pages.yml'; public function testMethodsExist() { /** @var \Page $page */ $page = $this->objFromFixture('Page', 'one'); $testClass = TestAnalysis::create($page); $this->assertTrue(method_exists($testClass, 'inspect')); $this->assertTrue(method_exists($testClass, 'run')); $this->assertTrue(method_exists($testClass, 'responses')); $this->expectException(\RuntimeException::class); $testClass->inspect(); $this->expectException(\RuntimeException::class); $testClass->run(); } } |