diff --git a/tests/LaravelGoogleShoppingFeedTest.php b/tests/LaravelGoogleShoppingFeedTest.php index af99f1b..558a8bd 100644 --- a/tests/LaravelGoogleShoppingFeedTest.php +++ b/tests/LaravelGoogleShoppingFeedTest.php @@ -36,10 +36,10 @@ function validProduct(array $overrides = []): array describe('addItem', function () { it('accepts a valid item without throwing', function () { - $feed = LaravelGoogleShoppingFeed::init(); + $feed = LaravelGoogleShoppingFeed::init('', '', ''); $feed->addItem(validProduct()); - expect(true)->toBeTrue(); + expect($feed)->toBeInstanceOf(LaravelGoogleShoppingFeed::class); }); it('throws for missing required field', function (string $field) { @@ -63,7 +63,7 @@ function validProduct(array $overrides = []): array it('returns a string', function () { $feed = LaravelGoogleShoppingFeed::init('Store', 'Desc', 'https://example.com'); - expect(is_string($feed->toXml()))->toBeTrue(); + expect($feed->toXml())->toBeString(); }); it('contains the RSS xmlns:g attribute', function () { @@ -85,9 +85,9 @@ function validProduct(array $overrides = []): array $xml = $feed->toXml(); expect($xml) - ->toContain('My Store') - ->toContain('My Description') - ->toContain('https://example.com'); + ->toContain('