public function testRouteCouldBeDuplicated() { $route = Route::create('my first trip'); $routeDuplicated = $route->duplicate(); $comparison = $route === $routeDuplicated; $this->assertFalse($comparison); }
public static function createWithFirstRoute(TripIdentity $identity, $name) { $trip = new self($identity, $name); $trip->routes->add(Route::create($trip->name)); return $trip; }