spec\Crummy\Phlack\WebHook\WebHookSpec::it_can_be_created_fromConfig PHP Метод

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

    public function it_can_be_created_fromConfig()
    {
        $config = ['team_domain' => 'http://phlack.slack.com'] + $this->defaultFields;
        $this->beConstructedThrough('fromConfig', [$config]);
        $this->toArray()->shouldHaveKeyWithValue('team_domain', 'http://phlack.slack.com');
    }