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

testCreateLocationReturnValues() public method

public testCreateLocationReturnValues ( $field, $value )
    public function testCreateLocationReturnValues($field, $value)
    {
        if ($value === null) {
            $this->markTestIncomplete('Proper value setting yet unknown.');
        }
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
        $handler = $this->getLocationGateway();
        $location = $handler->create(new CreateStruct(array('contentId' => 68, 'contentVersion' => 1, 'mainLocationId' => true, 'priority' => 1, 'remoteId' => 'some_id', 'sortField' => 1, 'sortOrder' => 1)), array('node_id' => '77', 'depth' => '2', 'path_string' => '/1/2/77/'));
        $this->assertTrue($location instanceof Location);
        $this->assertEquals($value, $location->{$field});
    }