Skip to content

Commit

Permalink
Revert PR 558 (#559)
Browse files Browse the repository at this point in the history
* revert pr

* update snapshots
  • Loading branch information
freekmurze authored Jan 13, 2025
1 parent c110c3d commit f32822a
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 256 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ vendor
.php_cs.cache
.phpunit.result.cache
.php-cs-fixer.cache
.phpunit.cache
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"pest_2.36.0","defects":[],"times":{"P\\Tests\\AlternateTest::__pest_evaluable_url_can_be_set":0.005,"P\\Tests\\AlternateTest::__pest_evaluable_locale_can_be_set":0,"P\\Tests\\CrawlProfileTest::__pest_evaluable_it_can_use_default_profile":0.001,"P\\Tests\\CrawlProfileTest::__pest_evaluable_it_can_use_the_custom_profile":0,"P\\Tests\\CrawlProfileTest::__pest_evaluable_it_can_use_the_subdomain_profile":0,"P\\Tests\\CrawlProfileTest::__pest_evaluable_it_can_use_the_internal_profile":0,"P\\Tests\\ImageTest::__pest_evaluable_XML_has_image":0.004,"P\\Tests\\NewsTest::__pest_evaluable_XML_has_News_tag":0.001,"P\\Tests\\SitemapGeneratorTest::__pest_evaluable_it_can_generate_a_sitemap":0.011,"P\\Tests\\SitemapGeneratorTest::__pest_evaluable_it_will_create_new_sitemaps_if_the_maximum_amount_is_crossed":0.007,"P\\Tests\\SitemapGeneratorTest::__pest_evaluable_it_can_modify_the_attributes_while_generating_the_sitemap":0.004,"P\\Tests\\SitemapGeneratorTest::__pest_evaluable_it_will_not_add_the_url_to_the_sitemap_if_hasCrawled___does_not_return_it":0.004,"P\\Tests\\SitemapGeneratorTest::__pest_evaluable_it_will_not_crawl_an_url_of_shouldCrawl___returns_false":0.003,"P\\Tests\\SitemapGeneratorTest::__pest_evaluable_it_will_not_crawl_an_url_if_listed_in_robots_txt":0.003,"P\\Tests\\SitemapGeneratorTest::__pest_evaluable_it_will_crawl_an_url_if_robots_txt_check_is_disabled":0.004,"P\\Tests\\SitemapGeneratorTest::__pest_evaluable_it_can_use_a_custom_profile":0.002,"P\\Tests\\SitemapIndexTest::__pest_evaluable_it_provides_a__create__method":0,"P\\Tests\\SitemapIndexTest::__pest_evaluable_it_can_render_an_empty_index":0,"P\\Tests\\SitemapIndexTest::__pest_evaluable_it_can_write_an_index_to_a_file":0.001,"P\\Tests\\SitemapIndexTest::__pest_evaluable_it_can_write_a_sitemap_to_a_storage_disk_with_private_visibility":0.004,"P\\Tests\\SitemapIndexTest::__pest_evaluable_it_can_write_a_sitemap_to_a_storage_disk_with_public_visibility":0.001,"P\\Tests\\SitemapIndexTest::__pest_evaluable_an_url_string_can_be_added_to_the_index":0.001,"P\\Tests\\SitemapIndexTest::__pest_evaluable_a_sitemap_object_can_be_added_to_the_index":0.001,"P\\Tests\\SitemapIndexTest::__pest_evaluable_multiple_sitemaps_can_be_added_to_the_index":0,"P\\Tests\\SitemapIndexTest::__pest_evaluable_it_can_render_a_sitemap_with_all_its_set_properties":0.001,"P\\Tests\\SitemapIndexTest::__pest_evaluable_it_can_determine_if_it_contains_a_given_sitemap":0,"P\\Tests\\SitemapIndexTest::__pest_evaluable_it_can_get_a_specific_sitemap":0,"P\\Tests\\SitemapIndexTest::__pest_evaluable_it_returns_null_when_getting_a_non_existing_sitemap":0,"P\\Tests\\SitemapIndexTest::__pest_evaluable_an_instance_can_return_a_response":0.002,"P\\Tests\\SitemapTest::__pest_evaluable_it_provides_a_create_method":0,"P\\Tests\\SitemapTest::__pest_evaluable_it_can_render_an_empty_sitemap":0,"P\\Tests\\SitemapTest::__pest_evaluable_it_can_write_a_sitemap_to_a_file":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_it_can_write_a_sitemap_to_a_storage_disk":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_it_can_write_a_sitemap_to_a_storage_disk_with_public_visibility":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_an_url_string_can_be_added_to_the_sitemap":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_an_url_cannot_be_added_twice_to_the_sitemap":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_an_url_with_an_alternate_can_be_added_to_the_sitemap":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_an_url_object_can_be_added_to_the_sitemap":0,"P\\Tests\\SitemapTest::__pest_evaluable_multiple_urls_can_be_added_to_the_sitemap":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_it_can_render_an_url_with_all_its_set_properties":0.002,"P\\Tests\\SitemapTest::__pest_evaluable_it_can_render_an_url_with_priority_0":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_it_can_determine_if_it_contains_a_given_url":0,"P\\Tests\\SitemapTest::__pest_evaluable_it_can_get_a_specific_url":0,"P\\Tests\\SitemapTest::__pest_evaluable_it_returns_null_when_getting_a_non_existing_url":0,"P\\Tests\\SitemapTest::__pest_evaluable_a_url_object_cannot_be_added_twice_to_the_sitemap":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_an_instance_can_return_a_response":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_multiple_urls_can_be_added_in_one_call":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_sitemapable_object_can_be_added":0.001,"P\\Tests\\SitemapTest::__pest_evaluable_sitemapable_objects_can_be_added":0.001,"P\\Tests\\UrlTest::__pest_evaluable_it_provides_a__create__method":0,"P\\Tests\\UrlTest::__pest_evaluable_url_can_be_set":0,"P\\Tests\\UrlTest::__pest_evaluable_last_modification_date_can_be_set":0,"P\\Tests\\UrlTest::__pest_evaluable_priority_can_be_set":0,"P\\Tests\\UrlTest::__pest_evaluable_priority_is_clamped":0,"P\\Tests\\UrlTest::__pest_evaluable_change_frequency_can_be_set":0,"P\\Tests\\UrlTest::__pest_evaluable_alternate_can_be_added":0,"P\\Tests\\UrlTest::__pest_evaluable_it_can_determine_its_type":0,"P\\Tests\\UrlTest::__pest_evaluable_it_can_determine_the_path":0,"P\\Tests\\UrlTest::__pest_evaluable_it_can_get_all_segments_from_a_relative_url":0,"P\\Tests\\UrlTest::__pest_evaluable_it_can_get_all_segments_from_an_absolute_url":0,"P\\Tests\\UrlTest::__pest_evaluable_it_can_get_a_specific_segment":0,"P\\Tests\\UrlTest::__pest_evaluable_it_will_return_null_for_non_existing_segment":0,"P\\Tests\\VideoTest::__pest_evaluable_XML_has_Video_tag":0.001}}
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ composer require spatie/laravel-sitemap

The package will automatically register itself.

If you intend to use the crawler to generate your sitemap using `SitemapGenerator::create(...)`, you also need to install the [Spatie's Crawler](https://github.com/spatie/crawler) package:

``` bash
composer require spatie/crawler
```

If you want to update your sitemap automatically and frequently you need to perform [some extra steps](https://github.com/spatie/laravel-sitemap#generating-the-sitemap-frequently).

## Configuration
Expand Down
8 changes: 3 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
"guzzlehttp/guzzle": "^7.8",
"illuminate/support": "^10.0|^11.0",
"nesbot/carbon": "^2.71|^3.0",
"spatie/laravel-package-tools": "^1.16.1"
"spatie/crawler": "^8.0.1",
"spatie/laravel-package-tools": "^1.16.1",
"symfony/dom-crawler": "^6.3.4|^7.0"
},
"require-dev": {
"mockery/mockery": "^1.6.6",
"orchestra/testbench": "^8.14|^9.0",
"pestphp/pest": "^2.24",
"spatie/crawler": "^8.4",
"spatie/pest-plugin-snapshots": "^2.1",
"spatie/phpunit-snapshot-assertions": "^5.1.2",
"spatie/temporary-directory": "^2.2"
Expand All @@ -44,9 +45,6 @@
]
}
},
"suggest": {
"spatie/crawler": "Required to use the crawler feature"
},
"autoload": {
"psr-4": {
"Spatie\\Sitemap\\": "src"
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function checkIfTestServerIsRunning(): void
function handleTestServerNotRunning(): void
{
if (getenv('TRAVIS')) {
test()->fail('The test server is not running on GitHub actions.');
test()->fail('The test server is not running on Travis.');
}

test()->markTestSkipped('The test server is not running.');
Expand Down
Loading

0 comments on commit f32822a

Please sign in to comment.