Skip to content

Commit

Permalink
Corrected PHPDoc and set table name from DoctrineDatabase::URL_TABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszdebinski committed Sep 20, 2023
1 parent b4756ba commit cddeba5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/integration/eZ/API/RichTextFieldTypeIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use eZ\Publish\API\Repository\Tests\FieldType\SearchBaseIntegrationTest;
use eZ\Publish\API\Repository\Values\Content\Location;
use eZ\Publish\Core\Base\Exceptions\NotFoundException;
use eZ\Publish\Core\Persistence\Legacy\URL\Gateway\DoctrineDatabase;
use EzSystems\EzPlatformRichText\eZ\FieldType\RichText\Value as RichTextValue;
use eZ\Publish\API\Repository\Values\Content\Field;
use DOMDocument;
Expand Down Expand Up @@ -637,10 +638,10 @@ public function testConvertRemoteObjectIdToObjectId($test, $expected): void
}

/**
* @throws \Doctrine\DBAL\Driver\Exception
* @throws \Doctrine\DBAL\Exception
* @throws \ErrorException
* @throws \eZ\Publish\API\Repository\Exceptions\ForbiddenException
* @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
* @throws \eZ\Publish\API\Repository\Exceptions\Exception
*/
public function testExternalLinkStoringAfterUpdate(): void
{
Expand Down Expand Up @@ -681,7 +682,7 @@ public function testExternalLinkStoringAfterUpdate(): void

$urlId = $this->getUrlIdForLink($testLink);

$this->assertContains($urlId, $urlIdsAfterUpdate);
self::assertContains($urlId, $urlIdsAfterUpdate);
}

/**
Expand All @@ -698,7 +699,7 @@ private function getUrlIdForLink(string $link): int
->select(
$connection->quoteIdentifier('id')
)
->from('ezurl')
->from(DoctrineDatabase::URL_TABLE)
->where('url = :url')
->setParameter(':url', $link, ParameterType::STRING)
;
Expand Down

0 comments on commit cddeba5

Please sign in to comment.