<commit_before><?php

use Silk\Post\Model;
use Silk\PostType\Builder;

class ModelTest extends PHPUnit_Framework_TestCase
{
    /**
     * @test
     */
    function it_has_a_method_for_getting_the_post_type_id()
    {
        $this->assertSame('event', ModelTestEvent::postTypeId());
        $this->assertSame('event', ModelTestEventTrait::postTypeId());
        $this->assertSame('model_test_post_type', ModelTestPostType::postTypeId());
        $this->assertSame('dinosaur', Dinosaur::postTypeId());
    }

    /**
     * @test
     */
    function it_has_a_method_for_getting_the_post_type_api()
    {
        $this->assertInstanceOf(Builder::class, Dinosaur::postType());
    }

}

/**
 * Models post with post_type 'event'
 */
class ModelTestEvent extends Model
{
    const POST_TYPE = 'event';
}

/**<commit_msg>add missing test for new typeId() model method<commit_after><?php

use Silk\Post\Model;
use Silk\PostType\Builder;

class ModelTest extends PHPUnit_Framework_TestCase
{
    /**
     * @test
     */
    function it_has_a_method_for_getting_the_post_type_id()
    {
        $this->assertSame('event', ModelTestEvent::postTypeId());
        $this->assertSame('event', ModelTestEventTrait::postTypeId());
        $this->assertSame('model_test_post_type', ModelTestPostType::postTypeId());
        $this->assertSame('dinosaur', Dinosaur::postTypeId());

        $this->assertSame('event', ModelTestEvent::typeId());
        $this->assertSame('event', ModelTestEventTrait::typeId());
    }

    /**
     * @test
     */
    function it_has_a_method_for_getting_the_post_type_api()
    {
        $this->assertInstanceOf(Builder::class, Dinosaur::postType());
    }

}

/**
 * Models post with post_type 'event'
 */
class ModelTestEvent extends Model
{
    const POST_TYPE = 'event';
}

/**
{'fraction_non_alphanumeric': 0.14547473625763466, 'fraction_numerical': 0.0, 'mean_word_length': 3.729658792650919, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '2109700', 'n_tokens_mistral': 595, 'n_tokens_neox': 585, 'n_words': 85}