Set('context', ContextTag::TAG_PORTAL.', '.ContextTag::TAG_CRON); $this->assertFalse($oTrigger->IsContextValid()); ContextTag::AddContext(ContextTag::TAG_SETUP); $this->assertFalse($oTrigger->IsContextValid()); ContextTag::AddContext(ContextTag::TAG_CRON); $this->assertTrue($oTrigger->IsContextValid()); } }