<commit_before><?php

namespace Railken\Laravel\Manager\Tests;

use Railken\Laravel\Manager\Tests\User\UserManager;
use stdClass;

class ModelManagerTest extends \Orchestra\Testbench\TestCase
{
    protected function getPackageProviders($app)
    {
        return [
            \Railken\Laravel\Manager\ManagerServiceProvider::class,
            \Railken\Laravel\Manager\Tests\User\UserServiceProvider::class,
        ];
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingAuthorizerException
     */
    public function testModelMissingAuthorizerExceptionNull()
    {
        UserManager::authorizer(null);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingAuthorizerException
     */
    public function testModelMissingAuthorizerExceptionNotValid()
    {
        UserManager::authorizer(stdClass::class);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingRepositoryException
     */
    public function testModelMissingRepositoryExceptionNull()
    {
        UserManager::repository(null);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingRepositoryException
     */
    public function testModelMissingRepositoryExceptionNotValid()
    {
        UserManager::repository(stdClass::class);
        new UserManager();
    }


    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingValidatorException
     */
    public function testModelMissingValidatorExceptionNull()
    {
        UserManager::validator(null);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingValidatorException
     */
    public function testModelMissingValidatorExceptionNotValid()
    {
        UserManager::validator(stdClass::class);
        new UserManager();
    }
}<commit_msg>add tests<commit_after><?php

namespace Railken\Laravel\Manager\Tests;

use Railken\Laravel\Manager\Tests\User\UserManager;
use stdClass;

class ModelManagerTest extends \Orchestra\Testbench\TestCase
{
    protected function getPackageProviders($app)
    {
        return [
            \Railken\Laravel\Manager\ManagerServiceProvider::class,
            \Railken\Laravel\Manager\Tests\User\UserServiceProvider::class,
        ];
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingAuthorizerException
     */
    public function testModelMissingAuthorizerExceptionNull()
    {
        UserManager::authorizer(null);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingAuthorizerException
     */
    public function testModelMissingAuthorizerExceptionNotValid()
    {
        UserManager::authorizer(stdClass::class);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingRepositoryException
     */
    public function testModelMissingRepositoryExceptionNull()
    {
        UserManager::repository(null);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingRepositoryException
     */
    public function testModelMissingRepositoryExceptionNotValid()
    {
        UserManager::repository(stdClass::class);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingValidatorException
     */
    public function testModelMissingValidatorExceptionNull()
    {
        UserManager::validator(null);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingValidatorException
     */
    public function testModelMissingValidatorExceptionNotValid()
    {
        UserManager::validator(stdClass::class);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingParametersException
     */
    public function testModelMissingParametersExceptionNull()
    {
        UserManager::parameters(null);
        new UserManager();
    }

    /**
     * @expectedException Railken\Laravel\Manager\Exceptions\ModelMissingParametersException
     */
    public function testModelMissingParametersExceptionNotValid()
    {
        UserManager::parameters(stdClass::class);
        new UserManager();
    }
}
{'fraction_non_alphanumeric': 0.0953020134228188, 'fraction_numerical': 0.0, 'mean_word_length': 3.190253045923149, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2854574', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1126, 'n_words': 147}