We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33374d5 commit 45f0154Copy full SHA for 45f0154
tests/integration/DetectTest.php
@@ -15,6 +15,22 @@ public function testCount(): void {
15
$this->assertGreaterThan( 1000, $count );
16
}
17
18
+ /**
19
+ * Test that the crawl queue list includes
20
+ * content that we added.
21
+ */
22
+ public function testIncludesAddedContent(): void {
23
+ $dir = ITEnv::getTestContentDir();
24
+ file_put_contents( $dir . '/new-content.html', 'New Content' );
25
+
26
+ $this->wpCli( [ 'wp2static', 'detect' ] );
27
+ $lines = $this->wpCli( [ 'wp2static', 'crawl_queue', 'list' ] )['output'];
28
+ $this->assertContains(
29
+ ITEnv::getTestContentPath() . '/new-content.html',
30
+ $lines
31
+ );
32
+ }
33
34
/**
35
* Test that the crawl queue list contains expected URL
36
*/
0 commit comments