tests/Schema/SchemaContainerTest.php
/**
     * Test model cannot have more than one schema.
     */
Test model cannot have more than one schema.
Test model cannot have more than one schema .
public function testModelCannotHaveTwoSchemas(): void
    {
        $this->expectException(InvalidArgumentException::class);
        $container = $this->createFactory()->createSchemaContainer([Author::class  => AuthorSchema::class]);
        assert($container instanceof SchemaContainer);
        $container->register(Author::class, CommentSchema::class);
    }
public function testModelCannotHaveTwoSchemas ( ) : void { $ this -> expectException ( InvalidArgumentException :: class ) ; $ container = $ this -> createFactory ( ) -> createSchemaContainer ( [ Author :: class => AuthorSchema :: class ] ) ; assert ( $ container instanceof SchemaContainer ) ; $ container -> register ( Author :: class , CommentSchema :: class ) ; }
Test model cannot have more than one schema.
Test model cannot have more than one schema .