setStoreApiAware example


    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');
        static::assertEquals('app-123', $entity->getAppId());

        $entity->setPluginId('plugin-123');
        static::assertEquals('plugin-123', $entity->getPluginId());

        $fields = [
            [
                'name' => 'field1',
            ],
Home | Imprint | This part of the site doesn't use cookies.