<commit_before><?php namespace Modules\Blog\Tests;

class EloquentTagRepositoryTest extends BaseBlogTestCase
{

}<commit_msg>Test the find by tag name method<commit_after><?php namespace Modules\Blog\Tests;

class EloquentTagRepositoryTest extends BaseBlogTestCase
{
    /** @test */
    public function it_finds_a_tag_by_name()
    {
        // Prepare
        $this->createTag();
        $this->createTag();
        $tag = $this->createTag();

        // Run
        $foundTag = $this->tag->findByName($tag->name);

        // Assert
        $this->assertEquals($tag->name, $foundTag[0]['name']);
    }
}
{'fraction_non_alphanumeric': 0.1419141914191419, 'fraction_numerical': 0.0016501650165016502, 'mean_word_length': 2.9934210526315788, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6419892', 'n_tokens_mistral': 190, 'n_tokens_neox': 183, 'n_words': 35}