eZ\Publish\Core\Repository\Tests\Service\Integration\TrashBase::testLoadTrashItem PHP Method

testLoadTrashItem() public method

Test loading a trash item.
public testLoadTrashItem ( )
    public function testLoadTrashItem()
    {
        $locationService = $this->repository->getLocationService();
        $trashService = $this->repository->getTrashService();
        $trashItem = $location = $trashService->trash($locationService->loadLocation(44));
        $loadedTrashItem = $trashService->loadTrashItem($location->id);
        self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\Content\\TrashItem', $trashItem);
        self::assertSameClassPropertiesCorrect(array('id', 'priority', 'hidden', 'invisible', 'remoteId', 'parentLocationId', 'pathString', 'depth', 'sortField', 'sortOrder'), $trashItem, $loadedTrashItem);
    }