Skip to content

Commit 2ed326b

Browse files
committed
Test that crawl queue list contains expected URL
1 parent 5f100c1 commit 2ed326b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/integration/DetectTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ public function testCount(): void {
1515
$this->assertGreaterThan( 1000, $count );
1616
}
1717

18+
/**
19+
* Test that the crawl queue list contains expected URL
20+
*/
21+
public function testList(): void {
22+
$this->wpCli( [ 'wp2static', 'detect' ] );
23+
$lines = $this->wpCli( [ 'wp2static', 'crawl_queue', 'list' ] )['output'];
24+
$this->assertContains( '/hello-world/', $lines );
25+
}
26+
1827
public function testSitemapDoubleSlashes(): void
1928
{
2029
$robotstxt = ITEnv::getWordPressDir() . '/robots.txt';

0 commit comments

Comments
 (0)