diff --git a/src/WoolworthsAustralia.php b/src/WoolworthsAustralia.php index b1299de..6859126 100644 --- a/src/WoolworthsAustralia.php +++ b/src/WoolworthsAustralia.php @@ -10,7 +10,6 @@ use ProductTrap\DTOs\Brand; use ProductTrap\DTOs\Price; use ProductTrap\DTOs\Product; -use ProductTrap\DTOs\Results; use ProductTrap\DTOs\UnitAmount; use ProductTrap\DTOs\UnitPrice; use ProductTrap\Enums\Currency; @@ -199,14 +198,4 @@ public function url(string $identifier): string { return self::BASE_URI.'/shop/productdetails/'.$identifier; } - - /** - * @param array $parameters - * - * @throws ProductTrapDriverException - */ - public function search(string $keywords, array $parameters = []): Results - { - return new Results(); - } } diff --git a/tests/Feature/WoolworthsTest.php b/tests/Feature/WoolworthsTest.php index 0fc7db9..f7f4c1a 100644 --- a/tests/Feature/WoolworthsTest.php +++ b/tests/Feature/WoolworthsTest.php @@ -50,7 +50,6 @@ function getMockWoolworthsAustralia($app, string $response): void getMockWoolworthsAustralia($this->app, $html); $product = $this->app->make(Factory::class)->driver(WoolworthsAustralia::IDENTIFIER)->find('257360'); - writeSampleProduct($product); expect($product) ->toBeInstanceOf(Product::class) diff --git a/tests/Pest.php b/tests/Pest.php index 5758c0b..59dbdc0 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -46,5 +46,5 @@ function writeSampleProduct(Product $product) {$string} ``` EOL; - file_put_contents(__DIR__ . '/../docs/SAMPLE_PRODUCT.md', $string); + file_put_contents(__DIR__.'/../docs/SAMPLE_PRODUCT.md', $string); }