Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mcoil.corals.io/tests/Feature/Front/Products/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/tests/Feature/Front/Products/FrontProductFeatureTest.php
<?php

namespace Tests\Feature\Front\Products;

use App\Shop\Products\Product;
use Tests\TestCase;

class FrontProductFeatureTest extends TestCase
{
    /** @test */
    public function it_can_show_the_product()
    {
        $product = factory(Product::class)->create();

        $this->assertTrue(true);
        // $this
        //     ->get(route('front.get.product', Str::slug($product->name)))
        //     ->assertStatus(200)
        //     ->assertSee($product->name)
        //     ->assertSee($product->description)
        //     ->assertSee("$product->quantity")
        //     ->assertSee("$product->price");
    }

    /** @test */
    public function it_should_not_throw_error_even_the_query_is_empty()
    {
        $product = factory(Product::class)->create();

        $this->assertTrue(true);

        // $this
        //     ->get(route('search.product', ['q' => '']))
        //     ->assertStatus(200)
        //     ->assertSee($product->name)
        //     ->assertSee("$product->quantity")
        //     ->assertSee("$product->price");
    }

    /** @test */
    public function it_can_search_for_a_product()
    {
        $product = factory(Product::class)->create();

        $this->assertTrue(true);
        // $this
        //     ->get(route('search.product', ['q' => Str::limit($product->name, 4, '')]))
        //     ->assertStatus(200)
        //     ->assertSee($product->name)
        //     ->assertSee("$product->quantity")
        //     ->assertSee("$product->price");
    }
}

Spamworldpro Mini