コード例 #1
0
ファイル: LiteSetupTest.php プロジェクト: oktopost/objection
 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));
 }
コード例 #2
0
 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));
 }