| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class StoreSettingsTest extends FS_Test |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var bool |
||
| 13 | */ |
||
| 14 | protected static $use_draft_site = true; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @throws \SilverStripe\ORM\ValidationException |
||
| 18 | */ |
||
| 19 | public function setUp() |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * |
||
| 31 | */ |
||
| 32 | public function testStoreKey() |
||
| 33 | { |
||
| 34 | $pref = FoxyCart::getKeyPrefix(); |
||
| 35 | $siteConf = FoxyStripeSetting::current_foxystripe_setting(); |
||
| 36 | |||
| 37 | $this->assertTrue(ctype_alnum($siteConf->StoreKey)); |
||
| 38 | $this->assertEquals(strlen($siteConf->StoreKey), 60); |
||
| 39 | $this->assertEquals(substr($siteConf->StoreKey, 0, 6), $pref); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * |
||
| 44 | */ |
||
| 45 | public function testStoreName() |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..