eZ\Publish\Core\Persistence\Legacy\Tests\Content\Location\Gateway\DoctrineDatabaseTest::testLoadLocationDataByContent PHP Method

testLoadLocationDataByContent() public method

public testLoadLocationDataByContent ( $field, $value )
    public function testLoadLocationDataByContent($field, $value)
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
        $gateway = $this->getLocationGateway();
        $locationsData = $gateway->loadLocationDataByContent(75);
        $this->assertCount(1, $locationsData);
        $locationRow = reset($locationsData);
        $this->assertEquals($value, $locationRow[$field]);
    }