File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,14 +22,11 @@ public function testAnnotations(): void
2222 $ reflection = new ReflectionClass (AdminLogin::class);
2323 $ entity = $ reflection ->getAttributes (Entity::class);
2424 $ table = $ reflection ->getAttributes (Table::class);
25- $ hasLifecycleCallbacks = $ reflection ->getAttributes (HasLifecycleCallbacks::class);
2625
2726 $ this ->assertNotEmpty ($ entity [0 ]);
2827 $ this ->assertNotEmpty ($ table [0 ]);
29- $ this ->assertNotEmpty ($ hasLifecycleCallbacks [0 ]);
3028 $ this ->assertInstanceOf (ReflectionAttribute::class, $ entity [0 ]);
3129 $ this ->assertInstanceOf (ReflectionAttribute::class, $ table [0 ]);
32- $ this ->assertInstanceOf (ReflectionAttribute::class, $ hasLifecycleCallbacks [0 ]);
3330
3431 $ entityArguments = $ entity [0 ]->getArguments ();
3532 $ tableArguments = $ table [0 ]->getArguments ();
Original file line number Diff line number Diff line change 66
77use DateTimeInterface ;
88use Doctrine \ORM \Mapping \Entity ;
9- use Doctrine \ORM \Mapping \HasLifecycleCallbacks ;
109use Doctrine \ORM \Mapping \Table ;
1110use Frontend \Admin \Entity \AdminRole ;
1211use Frontend \Admin \Repository \AdminRoleRepository ;
@@ -22,14 +21,11 @@ public function testAnnotations(): void
2221 $ reflection = new ReflectionClass (AdminRole::class);
2322 $ entity = $ reflection ->getAttributes (Entity::class);
2423 $ table = $ reflection ->getAttributes (Table::class);
25- $ hasLifecycleCallbacks = $ reflection ->getAttributes (HasLifecycleCallbacks::class);
2624
2725 $ this ->assertNotEmpty ($ entity [0 ]);
2826 $ this ->assertNotEmpty ($ table [0 ]);
29- $ this ->assertNotEmpty ($ hasLifecycleCallbacks [0 ]);
3027 $ this ->assertInstanceOf (ReflectionAttribute::class, $ entity [0 ]);
3128 $ this ->assertInstanceOf (ReflectionAttribute::class, $ table [0 ]);
32- $ this ->assertInstanceOf (ReflectionAttribute::class, $ hasLifecycleCallbacks [0 ]);
3329
3430 $ entityArguments = $ entity [0 ]->getArguments ();
3531 $ tableArguments = $ table [0 ]->getArguments ();
Original file line number Diff line number Diff line change @@ -42,14 +42,11 @@ public function testAnnotations(): void
4242 $ reflection = new ReflectionClass (Admin::class);
4343 $ entity = $ reflection ->getAttributes (Entity::class);
4444 $ table = $ reflection ->getAttributes (Table::class);
45- $ hasLifecycleCallbacks = $ reflection ->getAttributes (HasLifecycleCallbacks::class);
4645
4746 $ this ->assertNotEmpty ($ entity [0 ]);
4847 $ this ->assertNotEmpty ($ table [0 ]);
49- $ this ->assertNotEmpty ($ hasLifecycleCallbacks [0 ]);
5048 $ this ->assertInstanceOf (ReflectionAttribute::class, $ entity [0 ]);
5149 $ this ->assertInstanceOf (ReflectionAttribute::class, $ table [0 ]);
52- $ this ->assertInstanceOf (ReflectionAttribute::class, $ hasLifecycleCallbacks [0 ]);
5350
5451 $ entityArguments = $ entity [0 ]->getArguments ();
5552 $ tableArguments = $ table [0 ]->getArguments ();
You can’t perform that action at this time.
0 commit comments