Skip to content

Commit 3bd1df9

Browse files
committed
Update RealtimeCompilerTest.php
1 parent 63b1c5d commit 3bd1df9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/realtime-compiler/tests/RealtimeCompilerTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ public function testHandlesRoutesIndexPage()
5050
$this->assertEquals('OK', $response->statusMessage);
5151
$this->assertStringContainsString('<title>Welcome to HydePHP!</title>', $response->body);
5252

53-
$this->assertFileExists(hyde()->path('_site/index.html'));
54-
$this->assertEquals($response->body, Filesystem::get('_site/index.html'));
5553

56-
Filesystem::unlink('_site/index.html');
5754
}
5855

5956
public function testHandlesRoutesCustomPages()
@@ -71,12 +68,10 @@ public function testHandlesRoutesCustomPages()
7168
$this->assertStringContainsString('<h1>Hello World!</h1>', $response->body);
7269

7370
Filesystem::unlink('_pages/foo.md');
74-
Filesystem::unlink('_site/foo.html');
7571
}
7672

7773
public function testHandlesRoutesPagesWithHtmlExtension()
7874
{
79-
$this->mockRoute('foo.html');
8075

8176
Filesystem::put('_pages/foo.md', '# Hello World!');
8277

@@ -89,7 +84,6 @@ public function testHandlesRoutesPagesWithHtmlExtension()
8984
$this->assertStringContainsString('<h1>Hello World!</h1>', $response->body);
9085

9186
Filesystem::unlink('_pages/foo.md');
92-
Filesystem::unlink('_site/foo.html');
9387
}
9488

9589
public function testHandlesRoutesStaticAssets()
@@ -144,7 +138,6 @@ public function testTrailingSlashesAreNormalizedFromRoute()
144138
$this->assertStringContainsString('<h1>Hello World!</h1>', $response->body);
145139

146140
Filesystem::unlink('_pages/foo.md');
147-
Filesystem::unlink('_site/foo.html');
148141
}
149142

150143
public function testDocsUriPathIsReroutedToDocsIndex()
@@ -162,7 +155,6 @@ public function testDocsUriPathIsReroutedToDocsIndex()
162155
$this->assertStringContainsString('HydePHP Docs', $response->body);
163156

164157
Filesystem::unlink('_docs/index.md');
165-
Filesystem::unlink('_site/docs/index.html');
166158
}
167159

168160
public function testDocsSearchRendersSearchPage()
@@ -179,7 +171,6 @@ public function testDocsSearchRendersSearchPage()
179171
$this->assertStringContainsString('Search the documentation site', $response->body);
180172

181173
Filesystem::unlink('_docs/index.md');
182-
Filesystem::unlink('_site/docs/search.html');
183174
}
184175

185176
public function testPingRouteReturnsPingResponse()

0 commit comments

Comments
 (0)