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