public function test_create_WithAccess() { $this->assertHasAccessRestriction(AccessRestriction::NO_SET, LiteSetup::create(VarType::BOOL, 12, false, AccessRestriction::NO_SET)); $this->assertHasAccessRestriction(AccessRestriction::NO_SET, LiteSetup::create(VarType::BOOL, 12, false, AccessRestriction::NO_SET)); }
public function test_fixValue_Null() { $this->assertNull(ValueValidation::fixValue(LiteSetup::create(VarType::BOOL, true, true), null)); $this->assertNull(ValueValidation::fixValue(LiteSetup::createEnum(['a', 'b'], null, true), null)); $this->assertNull(ValueValidation::fixValue(LiteSetup::create(VarType::MIXED, $this, true), null)); }