Source of file ResultConditionsFieldTest.php
Size: 0,599 Bytes - Last Modified: 2021-12-23T10:28:15+00:00
/var/www/docs.ssmods.com/process/src/tests/php/Forms/ResultConditionsFieldTest.php
12345678910111213141516171819 | <?php namespace SilverStripe\CKANRegistry\Tests\Forms; use SilverStripe\CKANRegistry\Forms\ResultConditionsField; use SilverStripe\Dev\SapphireTest; class ResultConditionsFieldTest extends SapphireTest { public function testGetMatchOptionsDataStructure() { $result = ResultConditionsField::getMatchOptions(); $this->assertNotEmpty($result, 'Match options should be returned'); $this->assertArrayHasKey('value', $result[0], 'Unexpected data structure returned'); $this->assertArrayHasKey('title', $result[0], 'Unexpected data structure returned'); } } |