‪TYPO3CMS  9.5
BlobTypesTest.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
3 
5 
6 /*
7  * This file is part of the TYPO3 CMS project.
8  *
9  * It is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License, either version 2
11  * of the License, or any later version.
12  *
13  * For the full copyright and license information, please read the
14  * LICENSE.txt file that was distributed with this source code.
15  *
16  * The TYPO3 project - inspiring people to share!
17  */
18 
24 
29 {
35  public function ‪canParseBlobDataTypeProvider(): array
36  {
37  return [
38  'TINYBLOB' => [
39  'TINYBLOB',
40  TinyBlobDataType::class,
41  ],
42  'BLOB' => [
43  'BLOB',
44  BlobDataType::class,
45  ],
46  'MEDIUMBLOB' => [
47  'MEDIUMBLOB',
48  MediumBlobDataType::class,
49  ],
50  'LONGBLOB' => [
51  'LONGBLOB',
52  LongBlobDataType::class,
53  ],
54  ];
55  }
56 
63  public function ‪canParseDataType(string $columnDefinition, string $className)
64  {
65  $subject = $this->‪createSubject($columnDefinition);
66 
67  $this->assertInstanceOf($className, $subject->dataType);
68  }
69 }
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\DataTypes\BlobTypesTest\canParseDataType
‪canParseDataType(string $columnDefinition, string $className)
Definition: BlobTypesTest.php:63
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\DataTypes\BlobTypesTest
Definition: BlobTypesTest.php:29
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\AbstractDataTypeBaseTestCase\createSubject
‪TYPO3 CMS Core Database Schema Parser AST CreateColumnDefinitionItem createSubject(string $statement)
Definition: AbstractDataTypeBaseTestCase.php:51
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType\TinyBlobDataType
Definition: TinyBlobDataType.php:23
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType\MediumBlobDataType
Definition: MediumBlobDataType.php:23
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType\BlobDataType
Definition: BlobDataType.php:23
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType\LongBlobDataType
Definition: LongBlobDataType.php:23
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\AbstractDataTypeBaseTestCase
Definition: AbstractDataTypeBaseTestCase.php:28
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\DataTypes
Definition: BinaryDataTypeTest.php:4
‪TYPO3\CMS\Core\Tests\Unit\Database\Schema\Parser\DataTypes\BlobTypesTest\canParseBlobDataTypeProvider
‪array canParseBlobDataTypeProvider()
Definition: BlobTypesTest.php:35