public function bid1() { //Product $A0 = Product::firstOrNew(['product_code' => '12345']); $A1 = Product::firstOrNew(['product_code' => '12346']); $A2 = Product::firstOrNew(['product_code' => '12347']); $A3 = Product::firstOrNew(['product_code' => '12348']); $A4 = Product::firstOrNew(['product_code' => '12349']); //Seller $seller1 = User::where(['email' => '*****@*****.**'])->first(); $seller2 = User::where(['email' => '*****@*****.**'])->first(); $seller3 = User::where(['email' => '*****@*****.**'])->first(); //Auction $auction = Auction::find(1); //Bid $price = 2.98; $bundle = [$A0]; $this->addBid($price, $seller1, $auction, $bundle); $price = 2.56; $bundle = [$A2]; $this->addBid($price, $seller1, $auction, $bundle); // $price = 14.21; $bundle = [$A3]; $this->addBid($price, $seller1, $auction, $bundle); // $price = 12.77; $bundle = [$A0, $A2, $A3]; $this->addBid($price, $seller1, $auction, $bundle); // $price = 0.74; $bundle = [$A1]; $this->addBid($price, $seller2, $auction, $bundle); // $price = 2.37; $bundle = [$A2]; $this->addBid($price, $seller2, $auction, $bundle); // $price = 20.73; $bundle = [$A4]; $this->addBid($price, $seller2, $auction, $bundle); // $price = 20.94; $bundle = [$A1, $A2, $A4]; $this->addBid($price, $seller2, $auction, $bundle); // $price = 31.98; $bundle = [$A0]; $this->addBid($price, $seller3, $auction, $bundle); // $price = 0.78; $bundle = [$A1]; $this->addBid($price, $seller3, $auction, $bundle); // $price = 14.53; $bundle = [$A3]; $this->addBid($price, $seller3, $auction, $bundle); // $price = 21.3; $bundle = [$A4]; $this->addBid($price, $seller3, $auction, $bundle); // $price = 19.11; $bundle = [$A0, $A1, $A3, $A4]; $this->addBid($price, $seller3, $auction, $bundle); // $price = 68; $bundle = [$A0]; $this->addBid($price, $seller1, $auction, $bundle); // $price = 27.36; $bundle = [$A1]; $this->addBid($price, $seller3, $auction, $bundle); // $price = 68; $bundle = [$A2]; $this->addBid($price, $seller1, $auction, $bundle); // $price = 27.36; $bundle = [$A2]; $this->addBid($price, $seller3, $auction, $bundle); // $price = 68; $bundle = [$A3]; $this->addBid($price, $seller1, $auction, $bundle); // $price = 27.36; $bundle = [$A3]; $this->addBid($price, $seller3, $auction, $bundle); // $price = 272; $bundle = [$A4]; $this->addBid($price, $seller1, $auction, $bundle); // $price = 109.44; $bundle = [$A4]; $this->addBid($price, $seller3, $auction, $bundle); }