<commit_before><?php

class BlogTest extends TestCase
{
    public function setUp()
    {
        parent::setUp();
        $this->withoutMiddleware();
        $this->withoutEvents();
        factory(\Yab\Quarx\Models\Blog::class)->create();
    }

    /*
    |--------------------------------------------------------------------------
    | Views
    |--------------------------------------------------------------------------
    */

    public function testIndex()
    {
        $response = $this->call('GET', 'quarx/blog');
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertViewHas('blogs');
    }

    public function testCreate()
    {
        $response = $this->call('GET', 'quarx/blog/create');
        $this->assertEquals(200, $response->getStatusCode());
    }

    public function testEdit()
    {
        factory(\Yab\Quarx\Models\Blog::class)->create(['id' => 4]);
        $response = $this->call('GET', 'quarx/blog/4/edit');
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertViewHas('blog');
    }

    /*
    |--------------------------------------------------------------------------
    | Actions
    |--------------------------------------------------------------------------
    */

    public function testStore()
    {
        $blog = ['title' => 'dumber', 'url' => 'dumber', 'entry' => 'okie dokie'];
        $response = $this->call('POST', 'quarx/blog', $blog);<commit_msg>Test experiment<commit_after><?php

class BlogTest extends TestCase
{
    public function setUp()
    {
        parent::setUp();
        $this->withoutMiddleware();
        $this->withoutEvents();
        factory(\Yab\Quarx\Models\Blog::class)->create();
    }

    /*
    |--------------------------------------------------------------------------
    | Views
    |--------------------------------------------------------------------------
    */

    public function testIndex()
    {
        $response = $this->call('GET', 'quarx/blog');
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertViewHas('blogs');
    }

    public function testCreate()
    {
        $response = $this->call('GET', 'quarx/blog/create');
        dd($response);
        $this->assertEquals(200, $response->getStatusCode());
        $this->see('Title');
    }

    public function testEdit()
    {
        factory(\Yab\Quarx\Models\Blog::class)->create(['id' => 4]);
        $response = $this->call('GET', 'quarx/blog/4/edit');
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertViewHas('blog');
        $this->see('Title');
    }

    /*
    |--------------------------------------------------------------------------
    | Actions
    |--------------------------------------------------------------------------
    */

    public function testStore()
    {
        $blog = ['title' => 'dumber', 'url' => 'dumber', 'entry' => 'okie dokie'];
        $response = $this->call('POST', 'quarx/blog', $blog);
{'fraction_non_alphanumeric': 0.3540765391014975, 'fraction_numerical': 0.007321131447587354, 'mean_word_length': 1.296409472880061, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, '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': '6025677', 'n_tokens_mistral': 795, 'n_tokens_neox': 759, 'n_words': 117}