Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3750128
D383.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D383.diff
View Options
diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php
deleted file mode 100644
--- a/tests/ExampleTest.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-class ExampleTest extends TestCase {
-
- /**
- * A basic functional test example.
- *
- * @return void
- */
- public function testBasicExample()
- {
- $response = $this->call('GET', '/');
-
- $this->assertEquals(200, $response->getStatusCode());
- }
-
-}
diff --git a/tests/integration/AuthViewsTest.php b/tests/integration/AuthViewsTest.php
new file mode 100644
--- /dev/null
+++ b/tests/integration/AuthViewsTest.php
@@ -0,0 +1,42 @@
+<?php
+
+/**
+ * Test authentication views with GET request and form title checks.
+ *
+ * A test failure means an auth view is broken.
+ */
+class AuthViewsTest extends TestCase {
+
+ /**
+ * Tests the sign in view
+ */
+ public function testSignInView() {
+ $this->visit('/')
+ ->see('form-signin');
+ }
+
+ /**
+ * Tests the register account view
+ */
+ public function testRegisterAccountView() {
+ $this->visit('/auth/register')
+ ->see('form-register');
+ }
+
+ /**
+ * Tests the recover access view
+ */
+ public function testRecoverAccessView() {
+ $this->visit('/auth/recover')
+ ->see('form-recover');
+ }
+
+ /**
+ * Tests the reset password view
+ */
+ public function testResetPasswordView() {
+ $this->visit('/auth/reset/foo')
+ ->see('form-reset');
+ }
+
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 21:34 (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249842
Default Alt Text
D383.diff (1 KB)
Attached To
Mode
D383: Integration tests for auth views
Attached
Detach File
Event Timeline
Log In to Comment