spec\LdapTools\Utilities\GPOLinkSpec::it_should_set_and_get_whether_the_GPO_is_enabled PHP Метод

it_should_set_and_get_whether_the_GPO_is_enabled() публичный Метод

    function it_should_set_and_get_whether_the_GPO_is_enabled()
    {
        $this->getIsEnabled()->shouldEqual(true);
        $this->setIsEnabled(false)->shouldReturnAnInstanceOf('LdapTools\\Utilities\\GPOLink');
        $this->getIsEnabled()->shouldEqual(false);
        $this->getOptionsFlag()->shouldBeEqualTo(GPOLink::FLAGS['IGNORED']);
        $this->setIsEnabled(true);
        $this->getIsEnabled()->shouldEqual(true);
        $this->getOptionsFlag()->shouldNotBeEqualTo(GPOLink::FLAGS['IGNORED']);
    }