spec\LdapTools\Schema\Parser\SchemaYamlParserSpec::it_should_parse_a_schema_that_extends_a_default_schema PHP Метод

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

    function it_should_parse_a_schema_that_extends_a_default_schema()
    {
        $this->beConstructedWith(__DIR__ . '/../../../resources/schema');
        $this->parse('extends_default', 'user')->getDefaultContainer()->shouldBeEqualTo('ou=foo,ou=bar,dc=example,dc=local');
        $this->parse('extends_default', 'user')->hasAttribute('username')->shouldBeEqualTo(true);
        $this->parse('extends_default', 'user')->hasAttribute('foo')->shouldBeEqualTo(true);
        $this->parse('extends_default', 'user')->hasAttribute('username')->shouldBeEqualTo(true);
        $this->parse('extends_default', 'user')->getRepository()->shouldBeEqualTo('\\Foo\\Bar\\Repo');
        $this->parse('extends_default', 'user')->getRequiredAttributes()->shouldContain('foo');
        $this->parse('extends_default', 'user')->getRequiredAttributes()->shouldContain('username');
    }
SchemaYamlParserSpec