Exemplo n.º 1
0
 public function teamworkTest()
 {
     $clients = \Teamwork::company()->all();
     $clients = $clients->companies;
     foreach ($clients as $client) {
         dd($clients);
     }
 }
Exemplo n.º 2
0
 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()]);
 }