Test::assert() Laravel testing code example Example: laravel assert not authenticated $this->assertGuest($guard = null);