|
5 | 5 | namespace Doctrine\Bundle\DoctrineBundle\Tests\DependencyInjection; |
6 | 6 |
|
7 | 7 | use Closure; |
8 | | -use Doctrine\Bundle\DoctrineBundle\Attribute\AsDatabaseType; |
| 8 | +use Doctrine\Bundle\DoctrineBundle\Attribute\AsDbalType; |
9 | 9 | use Doctrine\Bundle\DoctrineBundle\Attribute\AsDoctrineListener; |
10 | 10 | use Doctrine\Bundle\DoctrineBundle\Attribute\AsEntityListener; |
11 | 11 | use Doctrine\Bundle\DoctrineBundle\CacheWarmer\DoctrineMetadataCacheWarmer; |
@@ -969,13 +969,13 @@ public function testAsDatabaseTypeAttribute(string $typeClassname, string $expec |
969 | 969 | ? array_map(static fn (array $arr) => $arr[0], $container->getAttributeAutoconfigurators()) |
970 | 970 | /** @phpstan-ignore method.notFound */ |
971 | 971 | : $container->getAutoconfiguredAttributes(); |
972 | | - $this->assertInstanceOf(Closure::class, $attributes[AsDatabaseType::class]); |
| 972 | + $this->assertInstanceOf(Closure::class, $attributes[AsDbalType::class]); |
973 | 973 |
|
974 | 974 | $reflector = new ReflectionClass($typeClassname); |
975 | 975 | $definition = new ChildDefinition(''); |
976 | | - $attribute = $reflector->getAttributes(AsDatabaseType::class)[0]->newInstance(); |
| 976 | + $attribute = $reflector->getAttributes(AsDbalType::class)[0]->newInstance(); |
977 | 977 |
|
978 | | - $attributes[AsDatabaseType::class]($definition, $attribute, $reflector); |
| 978 | + $attributes[AsDbalType::class]($definition, $attribute, $reflector); |
979 | 979 |
|
980 | 980 | $expected = ['type_name' => $expectedTypeName]; |
981 | 981 | $this->assertSame([$expected], $definition->getTag('doctrine.dbal.type')); |
|
0 commit comments