Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768294
D2083.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
708 B
Referenced Files
None
Subscribers
None
D2083.diff
View Options
diff --git a/ZedTest.php b/ZedTest.php
new file mode 100644
--- /dev/null
+++ b/ZedTest.php
@@ -0,0 +1,22 @@
+<?php
+
+require_once 'traits/assertHttp.php';
+
+class ZedTest extends PHPUnit\Framework\TestCase {
+ use assertHttp;
+
+ public function testAlive () {
+ $url = 'https://hypership.space/';
+ $this->assertHttpResponseCode(200, $url);
+ }
+
+ public function testContentRootIsForbidden () {
+ $url = 'https://hypership.space/content/';
+ $this->assertHttpResponseCode(403, $url);
+ }
+
+ public function testContent () {
+ $url = 'https://hypership.space/content/scenes/B00002.png';
+ $this->assertHttpResponseCode(200, $url);
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 07:24 (16 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259714
Default Alt Text
D2083.diff (708 B)
Attached To
Mode
D2083: Add tests for Zed
Attached
Detach File
Event Timeline
Log In to Comment