Source of file FlowchartTest.php
Size: 0,666 Bytes - Last Modified: 2021-12-24T06:40:37+00:00
/var/www/docs.ssmods.com/process/src/tests/FlowchartTest.php
1234567891011121314151617181920212223 | <?php namespace ChTombleson\Flowchart\Test; use SilverStripe\Dev\SapphireTest; use ChTombleson\Flowchart\Models\Flowchart; class FlowchartTest extends SapphireTest { protected static $fixture_file = 'FlowchartTest.yml'; public function testInstance() { $flowchart = $this->objFromFixture(Flowchart::class, 'Default'); $this->assertInstanceOf(Flowchart::class, $flowchart); $this->assertEquals($flowchart->Questions()->count(), 4); $this->assertEquals($flowchart->Feedback()->count(), 2); $this->assertEquals($flowchart->Votes()->count(), 3); $this->assertEquals($flowchart->averageVote(), 2); } } |