<commit_before><?php

use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class ExampleTest extends TestCase
{

    /**
     * @test
     */
    public function viewLogin()
    {
        $this->visit('/login')
             ->see('Login');
    }

    /**
     * @test
     */
    public function checkLogin()
    {
        $user = factory(App\User::class)->create();
        $this->actingAs($user)
            ->withSession(['foo' => 'bar'])
            ->visit('/')
            ->see('Add expense');

    }

    /**
     * @test
     */
    public function checkRedirect()
    {
        $user = factory(App\User::class)->create();
        $this->actingAs($user)
            ->withSession(['foo' => 'bar'])
            ->visit('/login')
            ->see('Add expense');

    }
}<commit_msg>Adding test<commit_after><?php

use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class ExampleTest extends TestCase
{

    /**
     * @test
     */
    public function viewLogin()
    {
        $this->visit('/login')
             ->see('Login');
    }

    /**
     * @test
     */
    public function checkLogin()
    {
        $user = factory(App\User::class)->create();
        $this->actingAs($user)
            ->withSession(['foo' => 'bar'])
            ->visit('/')
            ->see('Add expense');

    }

    /**
     * @test
     */
    public function checkRedirect()
    {
        $user = factory(App\User::class)->create();
        $this->actingAs($user)
            ->withSession(['foo' => 'bar'])
            ->visit('/login')
            ->see('Add expense');

    }

    public function addExpense()
    {
        use DatabaseTransactions;
        $user = factory(App\User::class)->create();
        $this->actingAs($user)
            ->withSession(['foo' => 'bar'])
            ->visit('/addExpense')
            ->see('');
    }
}
{'fraction_non_alphanumeric': 0.17368166424770198, 'fraction_numerical': 0.0, 'mean_word_length': 1.9375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2060000', 'n_tokens_mistral': 590, 'n_tokens_neox': 587, 'n_words': 95}