public function teamworkTest() { $clients = \Teamwork::company()->all(); $clients = $clients->companies; foreach ($clients as $client) { dd($clients); } }
public function testCanInviteToTeamWithoutCallback() { auth()->login($this->user); $email = "*****@*****.**"; $team = TeamworkTeam::create(['name' => 'test']); $this->user->attachTeam($team); \Teamwork::inviteToTeam($email); $this->seeInDatabase(config('teamwork.team_invites_table'), ['email' => '*****@*****.**', 'team_id' => $team->getKey()]); }