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

testListTrashSortedPathStringDesc() public method

    public function testListTrashSortedPathStringDesc()
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
        $handler = $this->getLocationGateway();
        $this->trashSubtree();
        $this->assertEquals(array('/1/2/69/76/', '/1/2/69/72/75/', '/1/2/69/72/74/', '/1/2/69/72/73/', '/1/2/69/72/', '/1/2/69/70/71/', '/1/2/69/70/', '/1/2/69/'), array_map(function ($trashItem) {
            return $trashItem['path_string'];
        }, $trashList = $handler->listTrashed(0, null, array(new SortClause\Location\Path(Query::SORT_DESC)))));
    }