Skip to content

Commit 96083e2

Browse files
Remove test skipping on older versions of Statamic (#429)
1 parent 663b999 commit 96083e2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/SitemapTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
use Illuminate\Support\Collection as IlluminateCollection;
77
use Orchestra\Testbench\Attributes\DefineEnvironment;
88
use PHPUnit\Framework\Attributes\Test;
9-
use Statamic\Console\Composer\Lock;
109
use Statamic\Facades\Blink;
1110
use Statamic\Facades\Collection;
1211
use Statamic\Facades\Config;
1312
use Statamic\Facades\Entry;
1413
use Statamic\SeoPro\Sitemap\Page;
1514
use Statamic\SeoPro\Sitemap\Sitemap;
16-
use Statamic\Statamic;
1715

1816
class SitemapTest extends TestCase
1917
{
@@ -375,13 +373,6 @@ public function it_404s_on_invalid_pagination_urls()
375373
#[Test]
376374
public function it_can_use_custom_sitemap_queries()
377375
{
378-
// Hacky/temporary version compare, because `reorder()` method we're using
379-
// in CustomSitemap class below requires 5.29.0+, and we don't want to
380-
// increase minimum required Statamic version just for test setup
381-
if (version_compare(ltrim(Lock::file(__DIR__.'/../composer.lock')->getInstalledVersion('statamic/cms'), 'v'), '5.29.0', '<')) {
382-
$this->markTestSkipped();
383-
}
384-
385376
app()->bind(Sitemap::class, CustomSitemap::class);
386377

387378
config()->set('statamic.seo-pro.sitemap.pagination.enabled', true);

0 commit comments

Comments
 (0)