Skip to content

Commit 6764daa

Browse files
committed
Fixed tests
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent 5c06199 commit 6764daa

3 files changed

Lines changed: 0 additions & 10 deletions

File tree

test/Unit/Admin/Entity/AdminLoginTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

test/Unit/Admin/Entity/AdminRoleTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use DateTimeInterface;
88
use Doctrine\ORM\Mapping\Entity;
9-
use Doctrine\ORM\Mapping\HasLifecycleCallbacks;
109
use Doctrine\ORM\Mapping\Table;
1110
use Frontend\Admin\Entity\AdminRole;
1211
use 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();

test/Unit/Admin/Entity/AdminTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)