Open sidebar
<?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/*' } }
Close sidebar
Back
Please note that all pasted data is publicly available.
Twitter
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
Twitter
GitHub
Use setting