eZ\Publish\Core\Persistence\Legacy\Tests\Content\Location\Gateway\DoctrineDatabaseTrashTest::testTrashLocation PHP Method

testTrashLocation() public method

public testTrashLocation ( )
    public function testTrashLocation()
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
        $handler = $this->getLocationGateway();
        $handler->trashLocation(71);
        $query = $this->handler->createSelectQuery();
        $this->assertQueryResult(array(array(1, 0), array(2, 0), array(69, 0), array(70, 0)), $query->select('node_id', 'priority')->from('ezcontentobject_tree')->where($query->expr->in('node_id', array(1, 2, 69, 70, 71))));
    }