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

testCreateLocationValues() public method

public testCreateLocationValues ( $field, $value )
    public function testCreateLocationValues($field, $value)
    {
        if ($value === null) {
            $this->markTestIncomplete('Proper value setting yet unknown.');
        }
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
        $handler = $this->getLocationGateway();
        $handler->create(new CreateStruct(array('contentId' => 68, 'contentVersion' => 1, 'mainLocationId' => 42, 'priority' => 1, 'remoteId' => 'some_id', 'sortField' => 1, 'sortOrder' => 1)), array('node_id' => '77', 'depth' => '2', 'path_string' => '/1/2/77/'));
        $query = $this->handler->createSelectQuery();
        $this->assertQueryResult(array(array($value)), $query->select($field)->from('ezcontentobject_tree')->where($query->expr->eq('node_id', 228)));
    }