<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use App\Http\Controllers\GoogleShoppingController;
class GoogleShoppingControllerTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testParseGoogleShoppingProductLink(){
$g = new GoogleShoppingController();
$urls = $g->parseGoogleShoppingProductLink();
// assert that the function only returns an array
$this->assertTrue(is_array($urls));
// asssert that array items are only 'path' => string '/shopping/product/*'
}
}