Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class StoreSettingsTest extends FS_Test |
||
9 | { |
||
10 | /** |
||
11 | * @var bool |
||
12 | */ |
||
13 | protected static $use_draft_site = true; |
||
14 | |||
15 | /** |
||
16 | * @throws \SilverStripe\ORM\ValidationException |
||
17 | */ |
||
18 | public function setUp() |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * |
||
30 | */ |
||
31 | public function testStoreKey() |
||
32 | { |
||
33 | $pref = FoxyCart::getKeyPrefix(); |
||
34 | $siteConf = SiteConfig::current_site_config(); |
||
35 | |||
36 | $this->assertTrue(ctype_alnum($siteConf->StoreKey)); |
||
37 | $this->assertEquals(strlen($siteConf->StoreKey), 60); |
||
38 | $this->assertEquals(substr($siteConf->StoreKey, 0, 6), $pref); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | */ |
||
44 | public function testStoreName() |
||
49 | } |
||
50 | } |
||
51 |