public function testConfig() { $this->assertEquals($this->configManager, $this->configProvider->getConfigManager()); $this->assertEquals(true, $this->configProvider->hasConfig(DemoEntity::ENTITY_NAME)); $this->assertEquals($this->entityConfig, $this->configProvider->getConfig(DemoEntity::ENTITY_NAME)); $this->assertEquals('testScope', $this->configProvider->getScope()); $entityConfigId = new EntityConfigId(DemoEntity::ENTITY_NAME, 'testScope'); $fieldConfigId = new FieldConfigId(DemoEntity::ENTITY_NAME, 'testScope', 'testField', 'string'); $this->assertEquals($entityConfigId, $this->configProvider->getId(DemoEntity::ENTITY_NAME)); $this->assertEquals($fieldConfigId, $this->configProvider->getId(DemoEntity::ENTITY_NAME, 'testField', 'string')); $entityConfigIdWithOtherScope = new EntityConfigId(DemoEntity::ENTITY_NAME, 'otherScope'); $fieldConfigIdWithOtherScope = new FieldConfigId(DemoEntity::ENTITY_NAME, 'otherScope', 'testField', 'string'); $this->assertEquals($entityConfigId, $this->configProvider->copyId($entityConfigIdWithOtherScope)); $this->assertEquals($fieldConfigId, $this->configProvider->copyId($fieldConfigIdWithOtherScope)); $this->assertEquals($this->entityConfig, $this->configProvider->getConfigById($entityConfigIdWithOtherScope)); }