public function isBanned() { $profile = $this->profile(); return isset($profile['is_write_banned']) ? (bool) $profile['is_write_banned'] : false; }
/** @test */ public function it_should_return_ban_info_from_profile() { $profile = ['is_write_banned' => true]; $this->apiShouldReturnData($profile)->assertEquals($profile['is_write_banned'], $this->provider->isBanned()); }