Page MenuHomeDevCentral

D383.diff
No OneTemporary

D383.diff

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

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)

Event Timeline