public function getMAO(string $typeName) : MetadataAccessObject
{
$schema = $this->schemaBuilder->build();
return new MetadataAccessObject($this->storage, $schema->name(), $schema->get($typeName), $this->hydrator);
}
public function test_removing_metadata() { $mao = $this->registry->getMAO("product"); $id = MetadataId::generate(); $mao->save(new Metadata($id, "product", ["sku" => "DUMPLIE_SKU_1", "name" => "Super Product"])); $mao->delete($id); $this->assertFalse($this->storage->has("inventory", "product", (string) $id)); }