Dumplie\Metadata\Tests\Integration\Infrastructure\Doctrine\Dbal\DoctrineStorageTest::test_find_by_returns_matching_results PHP Method

test_find_by_returns_matching_results() public method

    public function test_find_by_returns_matching_results()
    {
        $uuid = (string) Uuid::uuid4();
        $this->storage->create($this->schema);
        $this->storage->save('test', 'foo', $uuid, ['text' => 'value']);
        $result = $this->storage->findBy('test', 'foo', ['id' => $uuid]);
        $this->assertEquals(['id' => $uuid, 'text' => 'value'], $result);
    }