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

testLoadParentLocationDataForDraftContentAll() public method

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