Dumplie\Metadata\Tests\Integration\Generic\MapTypeTestCase::test_reading_metadata PHP Method

test_reading_metadata() public method

    public function test_reading_metadata()
    {
        $mao = $this->registry->getMAO("test");
        $id = MetadataId::generate();
        $mao->save(new Metadata($id, "test", []));
        $metadata = $mao->getBy(['id' => (string) $id]);
        $this->assertSame(null, $metadata->without_default);
        $this->assertSame([], $metadata->with_default);
    }