<commit_before><?php

namespace SuitTests\Http\Controllers;

use Mockery;
use SuitTests\TestCase;
use Suitcoda\Http\Controllers\UserController;
use Suitcoda\Model\User as Model;

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

class UserControllerTest extends TestCase
{
    use DatabaseTransactions, WithoutMiddleware;

    public function setUp()
    {
        parent::setUp();
    }

    public function tearDown()
    {
        parent::tearDown();
    }

    public function testIntegrationIndex()
    {
        $userFaker = factory(Model::class)->create();
        $this->visit('user')
             ->see($userFaker->name);
        $this->assertResponseOk();
        $this->seeInDatabase('users', [<commit_msg>Custom faker in user testing<commit_after><?php

namespace SuitTests\Http\Controllers;

use Mockery;
use SuitTests\TestCase;
use Suitcoda\Http\Controllers\UserController;
use Suitcoda\Model\User as Model;

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

class UserControllerTest extends TestCase
{
    use DatabaseTransactions, WithoutMiddleware;

    public function setUp()
    {
        parent::setUp();
    }

    public function tearDown()
    {
        parent::tearDown();
    }

    public function testIntegrationIndex()
    {
        $userFaker = factory(Model::class)->create([
            'name' => '<NAME>'
        ]);
        $this->visit('user')
             ->see($userFaker->name);
        $this->assertResponseOk();
        $this->seeInDatabase('users', [
{'fraction_non_alphanumeric': 0.11793916821849783, 'fraction_numerical': 0.0, 'mean_word_length': 3.32171581769437, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 17, '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': '1076142', 'n_tokens_mistral': 458, 'n_tokens_neox': 460, 'n_words': 88}