File tree Expand file tree Collapse file tree 4 files changed +32
-3
lines changed Expand file tree Collapse file tree 4 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 16
16
<env name =" APP_MAINTENANCE_DRIVER" value =" file" />
17
17
<env name =" BCRYPT_ROUNDS" value =" 4" />
18
18
<env name =" CACHE_STORE" value =" array" />
19
- <!-- < env name="DB_CONNECTION" value="sqlite"/> -- >
20
- <!-- < env name="DB_DATABASE" value=":memory:"/> -- >
19
+ <env name =" DB_CONNECTION" value =" sqlite" />
20
+ <env name =" DB_DATABASE" value =" :memory:" />
21
21
<env name =" MAIL_MAILER" value =" array" />
22
22
<env name =" PULSE_ENABLED" value =" false" />
23
23
<env name =" QUEUE_CONNECTION" value =" sync" />
Original file line number Diff line number Diff line change 2
2
3
3
test ('it can show the register page ' , function () {
4
4
visit ('/register ' )
5
+ ->assertNoConsoleLogs ()
6
+ ->assertNoJavaScriptErrors ()
5
7
->assertSee ('Create an account ' )
6
8
->assertSee ('Enter your details below to create your account ' );
7
9
});
10
+
11
+ test ('it can register a new user ' , function () {
12
+ visit ('/register ' )
13
+ ->fill ('name ' , 'Taylor Otwell ' )
14
+ ->
fill (
'email ' ,
'[email protected] ' )
15
+ ->fill ('password ' , 'password ' )
16
+ ->fill ('password_confirmation ' , 'password ' )
17
+ ->press ('Create account ' )
18
+ ->assertPathEndsWith ('/dashboard ' );
19
+
20
+ $ this ->assertAuthenticated ();
21
+ });
Original file line number Diff line number Diff line change 2
2
3
3
test ('it can show the default welcome page ' , function () {
4
4
visit ('/ ' )
5
+ ->assertNoConsoleLogs ()
6
+ ->assertNoJavaScriptErrors ()
5
7
->assertSee ('Let \'s get started ' )
6
8
->assertSee ('Log In ' )
7
9
->assertSee ('Register ' );
8
10
});
11
+
12
+
13
+ test ('it can browse to the register page ' , function () {
14
+ visit ('/ ' )
15
+ ->assertNoConsoleLogs ()
16
+ ->assertNoJavaScriptErrors ()
17
+ ->click ('Register ' )
18
+ ->assertPathEndsWith ('/register ' )
19
+ ->assertNoConsoleLogs ()
20
+ ->assertNoJavaScriptErrors ()
21
+ ->assertSee ('Create an account ' )
22
+ ->assertSee ('Enter your details below to create your account ' );
23
+ });
Original file line number Diff line number Diff line change 12
12
*/
13
13
14
14
pest ()->extend (Tests \TestCase::class)
15
- // ->use(Illuminate\Foundation\Testing\RefreshDatabase::class)
15
+ ->use (Illuminate \Foundation \Testing \RefreshDatabase::class)
16
16
->in ('Browser ' );
17
17
18
18
/*
You can’t perform that action at this time.
0 commit comments