|
7 | 7 | use DateTimeInterface; |
8 | 8 | use Doctrine\Common\Collections\ArrayCollection; |
9 | 9 | use Doctrine\ORM\Mapping\Entity; |
10 | | -use Doctrine\ORM\Mapping\HasLifecycleCallbacks; |
11 | 10 | use Doctrine\ORM\Mapping\Table; |
12 | 11 | use Frontend\Admin\Entity\Admin; |
13 | 12 | use Frontend\Admin\Entity\AdminRole; |
@@ -39,17 +38,14 @@ protected function setUp(): void |
39 | 38 |
|
40 | 39 | public function testAnnotations(): void |
41 | 40 | { |
42 | | - $reflection = new ReflectionClass(Admin::class); |
43 | | - $entity = $reflection->getAttributes(Entity::class); |
44 | | - $table = $reflection->getAttributes(Table::class); |
45 | | - $hasLifecycleCallbacks = $reflection->getAttributes(HasLifecycleCallbacks::class); |
| 41 | + $reflection = new ReflectionClass(Admin::class); |
| 42 | + $entity = $reflection->getAttributes(Entity::class); |
| 43 | + $table = $reflection->getAttributes(Table::class); |
46 | 44 |
|
47 | 45 | $this->assertNotEmpty($entity[0]); |
48 | 46 | $this->assertNotEmpty($table[0]); |
49 | | - $this->assertNotEmpty($hasLifecycleCallbacks[0]); |
50 | 47 | $this->assertInstanceOf(ReflectionAttribute::class, $entity[0]); |
51 | 48 | $this->assertInstanceOf(ReflectionAttribute::class, $table[0]); |
52 | | - $this->assertInstanceOf(ReflectionAttribute::class, $hasLifecycleCallbacks[0]); |
53 | 49 |
|
54 | 50 | $entityArguments = $entity[0]->getArguments(); |
55 | 51 | $tableArguments = $table[0]->getArguments(); |
|
0 commit comments