We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 231e5c1 commit fdda9beCopy full SHA for fdda9be
2 files changed
integration-tests/test/wp2static_test/post_process_test.clj
tests/integration/PostProcessTest.php
@@ -0,0 +1,26 @@
1
+<?php declare(strict_types=1);
2
+
3
+namespace WP2Static;
4
5
+use PHPUnit\Framework\TestCase;
6
7
+final class PostProcessTest extends TestCase {
8
9
+ use ITTrait;
10
11
+ public function testProcessedSite(): void
12
+ {
13
+ $this->wpCli( [ 'wp2static', 'detect' ] );
14
+ $this->wpCli( [ 'wp2static', 'crawl' ] );
15
+ $this->wpCli( [ 'wp2static', 'post_process' ] );
16
17
+ $content = $this->getProcessedFileContents( 'index.html' );
18
+ $this->assertStringContainsString( 'Welcome to WordPress', $content );
19
20
+ $content = $this->getProcessedFileContents( 'robots.txt' );
21
+ $this->assertStringContainsString(
22
+ 'Sitemap: https://example.com/wp-sitemap.xml',
23
+ $content
24
+ );
25
+ }
26
+}
0 commit comments