‪TYPO3CMS  ‪main
MockSQLitePlatform.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
23 class ‪MockSQLitePlatform extends Typo3SQLitePlatform
24 {
31  public function ‪getBlobTypeDeclarationSQL(array $field): string
32  {
33  return '';
34  }
35 
39  public function ‪getBooleanTypeDeclarationSQL(array $columnDef): string
40  {
41  return '';
42  }
43 
47  public function ‪getIntegerTypeDeclarationSQL(array $columnDef): string
48  {
49  return '';
50  }
51 
55  public function ‪getBigIntTypeDeclarationSQL(array $columnDef): string
56  {
57  return '';
58  }
59 
63  public function ‪getSmallIntTypeDeclarationSQL(array $columnDef): string
64  {
65  return '';
66  }
67 
71  public function ‪_getCommonIntegerTypeDeclarationSQL(array $columnDef): string
72  {
73  return '';
74  }
75 
79  public function ‪getVarcharTypeDeclarationSQL(array $field): string
80  {
81  return 'DUMMYVARCHAR()';
82  }
83 
87  public function ‪getClobTypeDeclarationSQL(array $field): string
88  {
89  return 'DUMMYCLOB';
90  }
91 
100  public function ‪getJsonTypeDeclarationSQL(array $field): string
101  {
102  return 'DUMMYJSON';
103  }
104 
110  public function ‪getBinaryTypeDeclarationSQL(array $field): string
111  {
112  return 'DUMMYBINARY';
113  }
114 
118  protected function ‪initializeDoctrineTypeMappings(): void {}
119 
127  protected function ‪getVarcharTypeDeclarationSQLSnippet($length): string
128  {
129  return '';
130  }
131 
138  protected function ‪getReservedKeywordsClass(): string
139  {
140  return MockKeywordList::class;
141  }
142 
143  public function ‪getCurrentDatabaseExpression(): string
144  {
145  return "''";
146  }
147 }
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getJsonTypeDeclarationSQL
‪getJsonTypeDeclarationSQL(array $field)
Definition: MockSQLitePlatform.php:100
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockKeywordList
Definition: MockKeywordList.php:23
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getVarcharTypeDeclarationSQL
‪getVarcharTypeDeclarationSQL(array $field)
Definition: MockSQLitePlatform.php:79
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getBinaryTypeDeclarationSQL
‪getBinaryTypeDeclarationSQL(array $field)
Definition: MockSQLitePlatform.php:110
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\_getCommonIntegerTypeDeclarationSQL
‪_getCommonIntegerTypeDeclarationSQL(array $columnDef)
Definition: MockSQLitePlatform.php:71
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getBlobTypeDeclarationSQL
‪string getBlobTypeDeclarationSQL(array $field)
Definition: MockSQLitePlatform.php:31
‪TYPO3\CMS\Core\Database\Platform\SQLitePlatform
Definition: SQLitePlatform.php:31
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getReservedKeywordsClass
‪getReservedKeywordsClass()
Definition: MockSQLitePlatform.php:138
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getBooleanTypeDeclarationSQL
‪getBooleanTypeDeclarationSQL(array $columnDef)
Definition: MockSQLitePlatform.php:39
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform
Definition: MockMariaDBPlatform.php:18
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getSmallIntTypeDeclarationSQL
‪getSmallIntTypeDeclarationSQL(array $columnDef)
Definition: MockSQLitePlatform.php:63
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getVarcharTypeDeclarationSQLSnippet
‪string getVarcharTypeDeclarationSQLSnippet($length)
Definition: MockSQLitePlatform.php:127
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getCurrentDatabaseExpression
‪getCurrentDatabaseExpression()
Definition: MockSQLitePlatform.php:143
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getIntegerTypeDeclarationSQL
‪getIntegerTypeDeclarationSQL(array $columnDef)
Definition: MockSQLitePlatform.php:47
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getBigIntTypeDeclarationSQL
‪getBigIntTypeDeclarationSQL(array $columnDef)
Definition: MockSQLitePlatform.php:55
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\initializeDoctrineTypeMappings
‪initializeDoctrineTypeMappings()
Definition: MockSQLitePlatform.php:118
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform\getClobTypeDeclarationSQL
‪getClobTypeDeclarationSQL(array $field)
Definition: MockSQLitePlatform.php:87
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockSQLitePlatform
Definition: MockSQLitePlatform.php:24