public function testDeleteFieldsLocalOnly() { $fields = ['field1' => ['t' => 'integer', 'h' => true], 'field2' => ['t' => 'string', 'h' => false]]; $this->cache->expects($this->never())->method('delete'); $this->configCache->saveFields(self::ENTITY_CLASS, $fields); $this->assertTrue($this->configCache->deleteFields(self::ENTITY_CLASS, true)); $this->assertNull($this->configCache->getFields(self::ENTITY_CLASS)); }