CustomEntityEntity example

use Shopware\Core\System\CustomEntity\CustomEntityEntity;

/** * @internal * * @covers \Shopware\Core\System\CustomEntity\CustomEntityEntity */
class CustomEntityEntityTest extends TestCase
{
    public function testGettersAndSetters(): void
    {
        $entity = new CustomEntityEntity();

        $entity->setId('123');
        static::assertEquals('123', $entity->getId());

        $entity->setName('Test Entity');
        static::assertEquals('Test Entity', $entity->getName());

        $entity->setStoreApiAware(true);
        static::assertTrue($entity->getStoreApiAware());

        $entity->setAppId('app-123');
        
Home | Imprint | This part of the site doesn't use cookies.