File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 88use Composite \Entity \Tests \TestStand \TesEntityWithAttribute ;
99use Composite \Entity \Tests \TestStand \TestAttribute ;
1010use Composite \Entity \Tests \TestStand \TestBackedIntEnum ;
11+ use Composite \Entity \Tests \TestStand \TestEntity ;
1112
1213final class SchemaTest extends \PHPUnit \Framework \TestCase
1314{
@@ -63,6 +64,12 @@ public function test_getAttribute(): void
6364 $ this ->assertEquals (2 , $ attribute ->val );
6465 }
6566
67+ public function test_getAttributeEmpty (): void
68+ {
69+ $ attribute = TestEntity::schema ()->getFirstAttributeByClass (TestAttribute::class);
70+ $ this ->assertNull ($ attribute );
71+ }
72+
6673 public function test_getColumn (): void
6774 {
6875 $ column = TesEntityWithAttribute::schema ()->getColumn ('not_existing ' );
You can’t perform that action at this time.
0 commit comments