AdminProductTest::testAdminProductStore PHP Method

testAdminProductStore() public method

A basic admin product store route test.
public testAdminProductStore ( ) : void
return void
    public function testAdminProductStore()
    {
        $this->adminUserLogin();
        /**
                $website = Website::first();
        
                $category = Category::create(['name' => 'category',
                                   'slug' => 'category-slug',
                                   'parent_id' => 0,
                                   'website_id' => $website->id
                               ]);
        
                $title = str_random();
                $slug = str_slug($title);
                $data = [
           'title' => $title,
           'slug' => $slug,
           'sku' => $slug,
           'description' => 'Product Description test',
           'price' => 10.99,
           'status' => 1,
           'is_featured' => 1,
           'category_id' => [$category->id],
           'website_id' => [$website->id],
           'image' => [],
           'in_stock' => 1,
           'track_stock' =>1,
           'qty' =>10,
           'is_taxable' =>1,
        
                ];
        
                $this->route('post','admin.product.store',$data);
        
                $this->seeInDatabase('product_varchar_values',['value' =>  $title]);
                $category->delete();
        
        *
        */
    }