Skip to content

Commit fdda9be

Browse files
committed
Convert PostProcessTest to PHP
1 parent 231e5c1 commit fdda9be

2 files changed

Lines changed: 26 additions & 18 deletions

File tree

integration-tests/test/wp2static_test/post_process_test.clj

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)