public function setUp()
 {
     $manager = new AccountManager();
     $manager->username = '******';
     $manager->password = '******';
     $manager->email = '*****@*****.**';
     $manager->created_at = '2016-01-13 00:06:16';
     $manager->updated_at = '2016-01-13 00:06:16';
     $manager->save();
     $user = new User();
     $user->account_manager_id = $manager->id;
     $user->username = '******';
     $user->password = '******';
     $user->email = '*****@*****.**';
     $user->created_at = '2016-01-13 00:06:16';
     $user->updated_at = '2016-01-13 00:06:16';
     $user->save();
     $user2 = new User();
     $user2->account_manager_id = $manager->id;
     $user2->username = '******';
     $user2->password = '******';
     $user2->email = '*****@*****.**';
     $user2->created_at = '2016-06-16 11:09:33';
     $user2->updated_at = '2016-06-16 11:09:33';
     $user2->save();
     $user->friends()->attach($user2, ['relationship' => 'Github Buddies']);
     $profile = new Profile();
     $profile->user_id = $user->id;
     $profile->gravatar = 'ThisIsAVeryRandomHash';
     $profile->created_at = '2016-01-13 00:06:16';
     $profile->updated_at = '2016-01-13 00:06:16';
     $profile->save();
     $user->groups()->saveMany([new Group(['name' => 'customers']), new Group(['name' => 'platin-customers']), new Group(['name' => 'users'])]);
     $order = new Orders();
     $order->user_id = $user->id;
     $order->name = 'Some item';
     $order->ordered_at = '2016-01-14 09:15:20';
     $order->save();
     $like = new Like();
     $like->user_id = $user->id;
     $like->likeable_id = $order->id;
     $like->likeable_type = Orders::class;
     $like->created_at = '2016-01-22 11:33:41';
     $like->updated_at = '2016-01-22 11:33:41';
     $like->save();
     $like = new Like();
     $like->user_id = $user->id;
     $like->likeable_id = $manager->id;
     $like->likeable_type = AccountManager::class;
     $like->created_at = '2016-01-22 11:33:41';
     $like->updated_at = '2016-01-22 11:33:41';
     $like->save();
 }
 public function setUp()
 {
     $user = new User();
     $user->username = '******';
     $user->password = '******';
     $user->email = '*****@*****.**';
     $user->created_at = '2016-01-13 00:06:16';
     $user->updated_at = '2016-01-13 00:06:16';
     $user->timestamps = false;
     $user->save();
     $user->groups()->saveMany([new Group(['name' => 'customers']), new Group(['name' => 'platin-customers']), new Group(['name' => 'users'])]);
     $order = new Orders();
     $order->user_id = $user->id;
     $order->name = 'Some item';
     $order->ordered_at = '2016-01-14 09:15:20';
     $order->save();
 }