Ouzo\Tools\Model\Template\GeneratorTest::shouldReturnObjectForConfiguredDialect PHP Метод

shouldReturnObjectForConfiguredDialect() публичный Метод

    public function shouldReturnObjectForConfiguredDialect()
    {
        //given
        $generator = new Generator('products');
        //when
        $templateDialect = $generator->dialectAdapter();
        //then
        $configuredDialectClassPath = Config::getValue('sql_dialect');
        $dialectReflectionClass = new ReflectionClass($templateDialect);
        $generatorDialectClassName = $dialectReflectionClass->getShortName();
        $this->assertStringEndsWith($generatorDialectClassName, $configuredDialectClassPath);
    }