You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
577 B
26 lines
577 B
<?php
|
|
|
|
namespace Tests\Feature\Api;
|
|
|
|
use App\Outlet;
|
|
use Tests\BrowserKitTest as TestCase;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
|
|
class OutletListingTest extends TestCase
|
|
{
|
|
use RefreshDatabase;
|
|
|
|
/** @test */
|
|
public function guest_can_retrieve_outlet_list()
|
|
{
|
|
$outlet = factory(Outlet::class)->create();
|
|
|
|
$this->getJson(route('api.outlets.index'));
|
|
|
|
$this->seeJson([
|
|
'name' => $outlet->name,
|
|
'address' => $outlet->address,
|
|
'coordinate' => $outlet->coordinate,
|
|
]);
|
|
}
|
|
}
|