public function setUp() { parent::setUp(); Product::unguard(); $this->existed[] = Product::create(['name' => 'p1']); $this->existed[] = Product::create(['name' => 'p2']); $this->existed[] = Product::create(['name' => 'p3']); $this->notFilled = new Product(); $this->notFilled->id = $this->existed[2]->id; $this->notExisted = new Product(); $this->notExisted->id = 999; }